Class: Occi::Core::Resources

Inherits:
Entities
  • Object
show all
Defined in:
lib/occi/core/resources.rb

Instance Attribute Summary

Attributes inherited from Entities

#model

Instance Method Summary collapse

Methods inherited from Entities

#<<, #as_json, #check, #initialize, #join

Methods included from Helpers::Inspect

#inspect

Constructor Details

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

Instance Method Details

#create(*args) ⇒ Object


5
6
7
8
9
10
# File 'lib/occi/core/resources.rb', line 5

def create(*args)
  resource       = Occi::Core::Resource.new(*args)
  resource.model = @model
  self << resource
  resource
end