Class: Ronin::DB::PersonalPhoneNumber
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ronin::DB::PersonalPhoneNumber
- Includes:
- Model
- Defined in:
- lib/ronin/db/personal_phone_number.rb
Overview
Represents a PhoneNumber that belongs to a Person.
Instance Attribute Summary collapse
-
#created_at ⇒ Time
Tracks when the personal phone number was created.
-
#id ⇒ Integer
The primary key of the personal phone number.
-
#person ⇒ Person
The person who owns the phone number.
-
#phone_number ⇒ PhoneNumber
The phone number.
-
#type ⇒ "home", ...
The type of the phone number.
Method Summary
Methods included from Model
Instance Attribute Details
#created_at ⇒ Time
Tracks when the personal phone number was created.
69 |
# File 'lib/ronin/db/personal_phone_number.rb', line 69 attribute :created_at, :datetime |
#id ⇒ Integer
The primary key of the personal phone number.
44 |
# File 'lib/ronin/db/personal_phone_number.rb', line 44 attribute :id, :integer |
#person ⇒ Person
The person who owns the phone number.
56 |
# File 'lib/ronin/db/personal_phone_number.rb', line 56 belongs_to :person |
#phone_number ⇒ PhoneNumber
The phone number.
62 |
# File 'lib/ronin/db/personal_phone_number.rb', line 62 belongs_to :phone_number |
#type ⇒ "home", ...
The type of the phone number.
50 |
# File 'lib/ronin/db/personal_phone_number.rb', line 50 enum :type, {home: 'home', cell: 'cell', fax: 'fax', voip: 'voip'} |