Class: Assently::Party
- Inherits:
-
Object
- Object
- Assently::Party
- Defined in:
- lib/assently/party.rb
Instance Attribute Summary collapse
-
#email ⇒ Object
Returns the value of attribute email.
-
#name ⇒ Object
Returns the value of attribute name.
-
#social_security_number ⇒ Object
Returns the value of attribute social_security_number.
Class Method Summary collapse
Instance Attribute Details
#email ⇒ Object
Returns the value of attribute email.
3 4 5 |
# File 'lib/assently/party.rb', line 3 def email @email end |
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/assently/party.rb', line 3 def name @name end |
#social_security_number ⇒ Object
Returns the value of attribute social_security_number.
4 5 6 |
# File 'lib/assently/party.rb', line 4 def @social_security_number end |
Class Method Details
.new_with_attributes(attributes = {}) ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/assently/party.rb', line 6 def self.new_with_attributes attributes = {} party = self.new attributes.each do |name, value| assignment_method_name = "#{name}=" party.public_send(assignment_method_name, value) if party.respond_to?(assignment_method_name) end party end |