class Occi::Core::Renderers::Text::ActionInstance

Implements methods needed to render action instances to text-based renderings. This class (its instances) is usually called directly from the “outside”. It utilizes `Category` and `Attributes` from this module to render actions and instance attributes.

@author Boris Parak <parak@cesnet.cz>

Public Instance Methods

render_headers() click to toggle source

Renders `object` into text for headers and returns the result as `Hash`.

@return [Hash] textual representation of Object for headers

# File lib/occi/core/renderers/text/action_instance.rb, line 29
def render_headers
  short_category(object.action).merge(instance_attributes)
end
render_plain() click to toggle source

Renders `object` into plain text and returns the result as `String`.

@return [String] textual representation of Object

# File lib/occi/core/renderers/text/action_instance.rb, line 21
def render_plain
  short_category(object.action) << "\n" << instance_attributes
end