class Occi::Core::Kind

Defines the classification system of the OCCI Core Model. The `Kind` instance represents the type identification mechanism for all `Entity` instances present in the model.

@example

Kind.new schema: 'http://schemas.ogf.org/occi/infrastructure#',
         term: 'compute',
         title: 'Compute'

@attr parent [Kind] previous `Kind` in the OCCI kind hierarchy @attr actions [Set] list of `Action` instances applicable to this `Kind` @attr location [URI] protocol agnostic location of this `Kind` instance

@author Boris Parak <parak@cesnet.cz>

Attributes

actions[RW]
location[W]
parent[RW]

Public Instance Methods

hierarchy_root?() click to toggle source

Indicates whether this instance is the base of the OCCI kind hierarchy, i.e. there are no predecessors. This helps to calculate the relationship status correctly, see `#related`.

@return [TrueClass, FalseClass] result

# File lib/occi/core/kind.rb, line 71
def hierarchy_root?
  parent.nil?
end