Class: Ahub::Space
- Inherits:
-
Object
- Object
- Ahub::Space
- Extended by:
- APIHelpers
- Includes:
- ClassHelpers
- Defined in:
- lib/ahub/space.rb
Instance Attribute Summary collapse
-
#active ⇒ Object
Returns the value of attribute active.
-
#error ⇒ Object
Returns the value of attribute error.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
-
#parent_id ⇒ Object
Returns the value of attribute parent_id.
Instance Method Summary collapse
-
#initialize(attrs) ⇒ Space
constructor
A new instance of Space.
Methods included from APIHelpers
admin_headers, base_url, find, find_all, headers, object_id_from_response
Methods included from ClassHelpers
Constructor Details
#initialize(attrs) ⇒ Space
7 8 9 10 11 |
# File 'lib/ahub/space.rb', line 7 def initialize(attrs) @name = attrs[:name] @active = attrs[:active] @parent_id = attrs[:parentId] end |
Instance Attribute Details
#active ⇒ Object
Returns the value of attribute active.
6 7 8 |
# File 'lib/ahub/space.rb', line 6 def active @active end |
#error ⇒ Object
Returns the value of attribute error.
6 7 8 |
# File 'lib/ahub/space.rb', line 6 def error @error end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/ahub/space.rb', line 6 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
6 7 8 |
# File 'lib/ahub/space.rb', line 6 def name @name end |
#parent_id ⇒ Object
Returns the value of attribute parent_id.
6 7 8 |
# File 'lib/ahub/space.rb', line 6 def parent_id @parent_id end |