Class: Occi::Infrastructure::Mixins::OsTpl

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

Overview

A helper class for manipulation with `os_tpl` parent mixin. Doesn't provide any additional functionality aside from the class name.

Author:

Constant Summary collapse

TITLE =
'OS or Appliance template (parent mixin)'.freeze

Constants included from Core::Helpers::IdentifierValidator

Core::Helpers::IdentifierValidator::PROHIBITED_SCHEMA_CHARS, Core::Helpers::IdentifierValidator::REGEXP_TERM

Constants included from Core::Helpers::Renderable

Core::Helpers::Renderable::RENDERER_FACTORY_CLASS

Instance Attribute Summary

Attributes inherited from Core::Mixin

#actions, #applies, #depends, #location

Attributes inherited from Core::Category

#attributes, #identifier, #schema, #term, #title

Instance Method Summary collapse

Methods inherited from Core::Mixin

#applies?, #depends?

Methods included from Core::Helpers::Locatable

#location

Methods inherited from Core::Category

#==, #eql?, #hash, #to_s, #valid!, #valid?

Methods included from Core::Helpers::YamlSummoner

#from_yaml, #needs_dereferencing?

Methods included from Core::Helpers::IdentifierValidator

#prohibited_chars!, #valid_identifier!, #valid_identifier?, #valid_schema!, #valid_schema?, #valid_term!, #valid_term?, #valid_uri!

Methods included from Core::Helpers::AttributesAccessor

#[], #[]=

Methods included from Core::Helpers::Renderable

extended, included, #render, #renderer_factory, renderer_factory, renderer_factory_class, #renderer_for

Constructor Details

#initializeOsTpl

See `Occi::Core::Mixin` and `Occi::Core::Category`


12
13
14
15
# File 'lib/occi/infrastructure/mixins/os_tpl.rb', line 12

def initialize
  schema, term = Occi::Infrastructure::Constants::OS_TPL_MIXIN.split('#')
  super term: term, schema: "#{schema}#", title: TITLE
end