class Occi::Core::Renderers::Json::Attributes

Implements routines required to pre-render instance attributes and its subclasses to a JSON-based representation.

@author Boris Parak <parak@cesnet.cz>

Constants

DEFAULT_LAMBDA

Typecasting lambdas

TYPECASTER_HASH

Public Instance Methods

render() click to toggle source

Renders the given object to `JSON`.

@return [String] object rendering as JSON

# File lib/occi/core/renderers/json/attributes.rb, line 22
def render
  raise Occi::Core::Errors::RendererError, 'Cannot render a standalone instance attribute'
end