Class: AeUsersMigrator::Import::Account
- Inherits:
-
Object
- Object
- AeUsersMigrator::Import::Account
- Defined in:
- lib/ae_users_migrator/import.rb
Instance Attribute Summary collapse
-
#activation_key ⇒ Object
Returns the value of attribute activation_key.
-
#active ⇒ Object
Returns the value of attribute active.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#password ⇒ Object
Returns the value of attribute password.
-
#updated_at ⇒ Object
Returns the value of attribute updated_at.
Instance Method Summary collapse
-
#initialize(json) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(json) ⇒ Account
Returns a new instance of Account.
28 29 30 31 32 |
# File 'lib/ae_users_migrator/import.rb', line 28 def initialize(json) %w{activation_key created_at updated_at id password active}.each do |f| self.send("#{f}=", json[f]) end end |
Instance Attribute Details
#activation_key ⇒ Object
Returns the value of attribute activation_key.
26 27 28 |
# File 'lib/ae_users_migrator/import.rb', line 26 def activation_key @activation_key end |
#active ⇒ Object
Returns the value of attribute active.
26 27 28 |
# File 'lib/ae_users_migrator/import.rb', line 26 def active @active end |
#created_at ⇒ Object
Returns the value of attribute created_at.
26 27 28 |
# File 'lib/ae_users_migrator/import.rb', line 26 def created_at @created_at end |
#id ⇒ Object
Returns the value of attribute id.
26 27 28 |
# File 'lib/ae_users_migrator/import.rb', line 26 def id @id end |
#password ⇒ Object
Returns the value of attribute password.
26 27 28 |
# File 'lib/ae_users_migrator/import.rb', line 26 def password @password end |
#updated_at ⇒ Object
Returns the value of attribute updated_at.
26 27 28 |
# File 'lib/ae_users_migrator/import.rb', line 26 def updated_at @updated_at end |