Class: Ronin::DB::PersonalPhoneNumber

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Model
Defined in:
lib/ronin/db/personal_phone_number.rb

Overview

Represents a PhoneNumber that belongs to a Person.

Since:

  • 0.2.0

Instance Attribute Summary collapse

Method Summary

Methods included from Model

included

Instance Attribute Details

#created_atTime

Tracks when the personal phone number was created.

Returns:

  • (Time)


69
# File 'lib/ronin/db/personal_phone_number.rb', line 69

attribute :created_at, :datetime

#idInteger

The primary key of the personal phone number.

Returns:

  • (Integer)


44
# File 'lib/ronin/db/personal_phone_number.rb', line 44

attribute :id, :integer

#personPerson

The person who owns the phone number.

Returns:



56
# File 'lib/ronin/db/personal_phone_number.rb', line 56

belongs_to :person

#phone_numberPhoneNumber

The phone number.

Returns:



62
# File 'lib/ronin/db/personal_phone_number.rb', line 62

belongs_to :phone_number

#type"home", ...

The type of the phone number.

Returns:

  • ("home", "cell", "fax", "voip", nil)


50
# File 'lib/ronin/db/personal_phone_number.rb', line 50

enum :type, {home: 'home', cell: 'cell', fax: 'fax', voip: 'voip'}