Class: Addressbook::Contact::Nested
- Defined in:
- lib/addressbook/contact.rb
Instance Method Summary collapse
-
#initialize(attributes = {}, persisted = false) ⇒ Nested
constructor
A new instance of Nested.
Methods inherited from Resource
Constructor Details
#initialize(attributes = {}, persisted = false) ⇒ Nested
Returns a new instance of Nested.
65 66 67 |
# File 'lib/addressbook/contact.rb', line 65 def initialize(attributes={}, persisted=false) @attributes = attributes.present? ? attributes.stringify_keys : default_attributes end |