Class: Occi::Infrastructure::Storage::Resize
- Inherits:
-
Core::Action
- Object
- Core::Category
- Core::Action
- Occi::Infrastructure::Storage::Resize
- Defined in:
- lib/occi/infrastructure/storage.rb
Instance Attribute Summary
Attributes inherited from Core::Category
#attributes, #model, #scheme, #term, #title
Instance Method Summary collapse
-
#initialize(scheme = 'http://schemas.ogf.org/occi/infrastructure/storage/action#', term = 'resize', title = 'resize storage') ⇒ Resize
constructor
A new instance of Resize.
Methods inherited from Core::Action
Methods inherited from Core::Category
#as_json, categories, get_class, #inspect, #location, #related_to?, #to_header, #to_s, #to_string, #to_string_short, #to_text, #type_identifier
Constructor Details
#initialize(scheme = 'http://schemas.ogf.org/occi/infrastructure/storage/action#', term = 'resize', title = 'resize storage') ⇒ Resize
Returns a new instance of Resize.
38 39 40 41 42 43 44 45 |
# File 'lib/occi/infrastructure/storage.rb', line 38 def initialize(scheme='http://schemas.ogf.org/occi/infrastructure/storage/action#', term='resize', title='resize storage') super @attributes.size = Occi::Core::AttributeProperties.new( { :type => 'number', :mutable => true }) end |