Class: ContactManager::Contact

Inherits:
Object
  • Object
show all
Defined in:
lib/glimmer-dsl-opal/samples/elaborate/contact_manager/contact.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#emailObject

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_nameObject

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_nameObject

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