Class: OCCI::Core::Mixin

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Category

#convert_value, #related_to?, #type_identifier

Constructor Details

#initialize(mixin, default = nil) ⇒ Mixin

Returns a new instance of Mixin



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

#entitiesObject

Returns the value of attribute entities



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

def entities
  @entities
end

Instance Method Details

#locationObject



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

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