Class: ContactManager::Contact
- Inherits:
-
Object
- Object
- ContactManager::Contact
- Defined in:
- lib/glimmer-dsl-opal/samples/elaborate/contact_manager/contact.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#first_name ⇒ Object
Returns the value of attribute first_name.
-
#last_name ⇒ Object
Returns the value of attribute last_name.
Instance Method Summary collapse
-
#initialize(attribute_map) ⇒ Contact
constructor
A new instance of Contact.
Constructor Details
#initialize(attribute_map) ⇒ Contact
Returns a new instance of Contact.
5 6 7 8 9 |
# File 'lib/glimmer-dsl-opal/samples/elaborate/contact_manager/contact.rb', line 5 def initialize(attribute_map) @first_name = attribute_map[:first_name] @last_name = attribute_map[:last_name] @email = attribute_map[:email] end |
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/glimmer-dsl-opal/samples/elaborate/contact_manager/contact.rb', line 3 def email @email end |
#first_name ⇒ Object
Returns the value of attribute first_name.
3 4 5 |
# File 'lib/glimmer-dsl-opal/samples/elaborate/contact_manager/contact.rb', line 3 def first_name @first_name end |
#last_name ⇒ Object
Returns the value of attribute last_name.
3 4 5 |
# File 'lib/glimmer-dsl-opal/samples/elaborate/contact_manager/contact.rb', line 3 def last_name @last_name end |