Class: AeUsersMigrator::Import::Role
- Inherits:
-
Object
- Object
- AeUsersMigrator::Import::Role
- Defined in:
- lib/ae_users_migrator/import.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#people ⇒ Object
Returns the value of attribute people.
Instance Method Summary collapse
-
#initialize(json) ⇒ Role
constructor
A new instance of Role.
Constructor Details
#initialize(json) ⇒ Role
Returns a new instance of Role.
38 39 40 41 42 |
# File 'lib/ae_users_migrator/import.rb', line 38 def initialize(json) self.name = json["name"] self.id = json["id"] self.people = [] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
36 37 38 |
# File 'lib/ae_users_migrator/import.rb', line 36 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
36 37 38 |
# File 'lib/ae_users_migrator/import.rb', line 36 def name @name end |
#people ⇒ Object
Returns the value of attribute people.
36 37 38 |
# File 'lib/ae_users_migrator/import.rb', line 36 def people @people end |