Class: Ahub::Space

Inherits:
Object
  • Object
show all
Extended by:
APIHelpers
Includes:
ClassHelpers
Defined in:
lib/ahub/space.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from APIHelpers

admin_headers, base_url, find, find_all, headers, object_id_from_response

Methods included from ClassHelpers

#destroy, included, #update

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

#activeObject

Returns the value of attribute active.



6
7
8
# File 'lib/ahub/space.rb', line 6

def active
  @active
end

#errorObject

Returns the value of attribute error.



6
7
8
# File 'lib/ahub/space.rb', line 6

def error
  @error
end

#idObject

Returns the value of attribute id.



6
7
8
# File 'lib/ahub/space.rb', line 6

def id
  @id
end

#nameObject

Returns the value of attribute name.



6
7
8
# File 'lib/ahub/space.rb', line 6

def name
  @name
end

#parent_idObject

Returns the value of attribute parent_id.



6
7
8
# File 'lib/ahub/space.rb', line 6

def parent_id
  @parent_id
end