Class: Occi::Infrastructure::Os_tpl

Inherits:
Core::Mixin show all
Defined in:
lib/occi/infrastructure/os_tpl.rb

Instance Attribute Summary

Attributes inherited from Core::Mixin

#actions, #entities, #location, #related

Attributes inherited from Core::Category

#attributes, #model, #scheme, #term, #title

Instance Method Summary collapse

Methods inherited from Core::Mixin

#as_json, #to_string

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#', term = 'os_tpl', title = 'operating system template', attributes = Occi::Core::Attributes.new, related = Occi::Core::Categories.new, actions = Occi::Core::Actions.new, location = '/mixins/os_tpl/') ⇒ Os_tpl

Returns a new instance of Os_tpl.



5
6
7
8
9
10
11
12
13
14
15
# File 'lib/occi/infrastructure/os_tpl.rb', line 5

def initialize(scheme='http://schemas.ogf.org/occi/infrastructure#',
    term='os_tpl',
    title='operating system template',
    attributes=Occi::Core::Attributes.new,
    related=Occi::Core::Categories.new,
    actions=Occi::Core::Actions.new,
    location='/mixins/os_tpl/')

  super(scheme, term, title, attributes, related, actions, location)
  self.related << Occi::Infrastructure::Compute.kind
end