Class: Occi::Core::Renderers::Json::Locations

Inherits:
Base
  • Object
show all
Defined in:
lib/occi/core/renderers/json/locations.rb

Overview

Implements routines required to render `Occi::Core::Locations` and its subclasses to a JSON-based representation.

Author:

Constant Summary

Constants inherited from Base

Base::DELEGATED

Instance Attribute Summary

Attributes inherited from Base

#object, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize, #render

Constructor Details

This class inherits a constructor from Occi::Core::Renderers::Json::Base

Instance Method Details

#render_hashObject

:nodoc:


13
14
15
# File 'lib/occi/core/renderers/json/locations.rb', line 13

def render_hash
  object.map(&:to_s)
end