Class: AeUsersMigrator::Import::EmailAddress
- Inherits:
-
Object
- Object
- AeUsersMigrator::Import::EmailAddress
- Defined in:
- lib/ae_users_migrator/import.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#primary ⇒ Object
Returns the value of attribute primary.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ EmailAddress
constructor
A new instance of EmailAddress.
Constructor Details
#initialize(json) ⇒ EmailAddress
Returns a new instance of EmailAddress.
8 9 10 11 12 |
# File 'lib/ae_users_migrator/import.rb', line 8 def initialize(json) %w{address created_at updated_at primary id}.each do |f| self.send("#{f}=", json[f]) end end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
6 7 8 |
# File 'lib/ae_users_migrator/import.rb', line 6 def address @address end |
#created_at ⇒ Object
Returns the value of attribute created_at.
6 7 8 |
# File 'lib/ae_users_migrator/import.rb', line 6 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/ae_users_migrator/import.rb', line 6 def id @id end |
#primary ⇒ Object
Returns the value of attribute primary.
6 7 8 |
# File 'lib/ae_users_migrator/import.rb', line 6 def primary @primary end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
6 7 8 |
# File 'lib/ae_users_migrator/import.rb', line 6 def updated_at @updated_at end |