Class: OCCI::Core::Mixin

Inherits:
Category
  • Object
show all
Defined in:
lib/occi/core/mixin.rb

Direct Known Subclasses

Backend::ONE::VNC, Monitor::Cpu, Monitor::Memory, Monitor::Metric, Monitor::Nettx

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from Category

#convert_value, #related_to?, #type_identifier

Constructor Details

- (Mixin) initialize(mixin, default = nil)



32
33
34
35
# File 'lib/occi/core/mixin.rb', line 32

def initialize(mixin, default = nil)
  @entities = []
  super(mixin, default)
end

Instance Attribute Details

- (Object) entities

Returns the value of attribute entities



30
31
32
# File 'lib/occi/core/mixin.rb', line 30

def entities
  @entities
end

Instance Method Details

- (Object) location



37
38
39
# File 'lib/occi/core/mixin.rb', line 37

def location
  '/mixin/' + self[:term] + '/'
end