Class: Occi::Infrastructure::Storage

Inherits:
Core::Resource show all
Defined in:
lib/occi/infrastructure/storage.rb

Instance Attribute Summary

Attributes inherited from Core::Resource

#links

Attributes inherited from Core::Entity

#actions, #attributes, #id, #kind, #location, #mixins, #model

Instance Method Summary collapse

Methods inherited from Core::Resource

#as_json, #initialize, #link, #model=, #summary, #summary=, #to_header, #to_text

Methods inherited from Core::Entity

#as_json, check, #check, #initialize, new, #title, #title=, #to_header, #to_s, #to_text, type_identifier

Methods included from Helpers::Inspect

#inspect

Constructor Details

This class inherits a constructor from Occi::Core::Resource

Instance Method Details

#sizeObject


43
44
45
# File 'lib/occi/infrastructure/storage.rb', line 43

def size
  @attributes.occi.storage.size if @attributes.occi.storage if @attributes.occi
end

#size=(size) ⇒ Object


47
48
49
# File 'lib/occi/infrastructure/storage.rb', line 47

def size=(size)
  @attributes.occi!.storage!.size = size
end

#stateObject


51
52
53
# File 'lib/occi/infrastructure/storage.rb', line 51

def state
  @attributes.occi.storage.state if @attributes.occi.storage if @attributes.occi
end

#state=(state) ⇒ Object


55
56
57
# File 'lib/occi/infrastructure/storage.rb', line 55

def state=(state)
  @attributes.occi!.storage!.state = state
end