Class: Azeroth::DummyDecorator Private

Inherits:
Object
  • Object
show all
Defined in:
lib/azeroth/dummy_decorator.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Decorator that calls #as_json on object

Author:

  • Darthjee

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ DummyDecorator

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Returns a new instance of DummyDecorator.

Parameters:

  • object (Object)

    object to be decorated



20
21
22
# File 'lib/azeroth/dummy_decorator.rb', line 20

def initialize(object)
  @object = object
end

Instance Method Details

#as_jsonHash

Returns object.as_json

Returns:

  • (Hash)


# File 'lib/azeroth/dummy_decorator.rb', line 12