Class: AeUsersMigrator::Import::Account

Inherits:
Object
  • Object
show all
Defined in:
lib/ae_users_migrator/import.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_keyObject

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

#activeObject

Returns the value of attribute active.



26
27
28
# File 'lib/ae_users_migrator/import.rb', line 26

def active
  @active
end

#created_atObject

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

#idObject

Returns the value of attribute id.



26
27
28
# File 'lib/ae_users_migrator/import.rb', line 26

def id
  @id
end

#passwordObject

Returns the value of attribute password.



26
27
28
# File 'lib/ae_users_migrator/import.rb', line 26

def password
  @password
end

#updated_atObject

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