Class: Arkaan::Phone
- Inherits:
-
Object
- Object
- Arkaan::Phone
- Includes:
- Concerns::Enumerable, Mongoid::Document, Mongoid::Timestamps
- Defined in:
- lib/arkaan/phone.rb
Overview
A phone number is given by a user so that the persons he has selected can have it to contact him.
Instance Attribute Summary collapse
-
#account ⇒ Arkaan::Account
The account the phone number is associated to.
-
#number ⇒ Integer
The phone number the user has given.
-
#privacy ⇒ Symbol
The level of privacy you want for this phone number.
Instance Attribute Details
#account ⇒ Arkaan::Account
Returns the account the phone number is associated to.
18 |
# File 'lib/arkaan/phone.rb', line 18 :account, class_name: 'Arkaan::Account', inverse_of: :phones |
#number ⇒ Integer
Returns the phone number the user has given.
14 |
# File 'lib/arkaan/phone.rb', line 14 field :number, type: String |
#privacy ⇒ Symbol
Returns the level of privacy you want for this phone number.
11 |
# File 'lib/arkaan/phone.rb', line 11 enum_field :privacy, [:players, :public, :private], default: :private |