Class: Azeroth::DummyDecorator Private
- Inherits:
-
Object
- Object
- Azeroth::DummyDecorator
- 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
Instance Method Summary collapse
-
#as_json ⇒ Hash
Returns object.as_json.
-
#initialize(object) ⇒ DummyDecorator
constructor
private
A new instance of DummyDecorator.
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.
20 21 22 |
# File 'lib/azeroth/dummy_decorator.rb', line 20 def initialize(object) @object = object end |
Instance Method Details
#as_json ⇒ Hash
Returns object.as_json
|
# File 'lib/azeroth/dummy_decorator.rb', line 12
|