Class: Yardi::Parameter::ContactInfo
- Inherits:
-
Object
- Object
- Yardi::Parameter::ContactInfo
- Defined in:
- lib/yardi/parameter/contact_info.rb
Instance Attribute Summary collapse
-
#cell_phone ⇒ Object
readonly
Returns the value of attribute cell_phone.
-
#email ⇒ Object
readonly
Returns the value of attribute email.
-
#home_phone ⇒ Object
readonly
Returns the value of attribute home_phone.
Instance Method Summary collapse
-
#initialize(email:, cell_phone: nil, home_phone: nil) ⇒ ContactInfo
constructor
A new instance of ContactInfo.
Constructor Details
#initialize(email:, cell_phone: nil, home_phone: nil) ⇒ ContactInfo
Returns a new instance of ContactInfo.
6 7 8 9 10 |
# File 'lib/yardi/parameter/contact_info.rb', line 6 def initialize(email:, cell_phone: nil, home_phone: nil) @email = email @cell_phone = cell_phone @home_phone = home_phone end |
Instance Attribute Details
#cell_phone ⇒ Object (readonly)
Returns the value of attribute cell_phone.
4 5 6 |
# File 'lib/yardi/parameter/contact_info.rb', line 4 def cell_phone @cell_phone end |
#email ⇒ Object (readonly)
Returns the value of attribute email.
4 5 6 |
# File 'lib/yardi/parameter/contact_info.rb', line 4 def email @email end |
#home_phone ⇒ Object (readonly)
Returns the value of attribute home_phone.
4 5 6 |
# File 'lib/yardi/parameter/contact_info.rb', line 4 def home_phone @home_phone end |