Class: Moon::Response::JSON::Model
- Inherits:
-
Moon::Response::JSON
- Object
- Base
- Moon::Response::JSON
- Moon::Response::JSON::Model
- Defined in:
- lib/moon/response/json/model.rb
Overview
Moon::Response::JSON::Collection provides a response that contains one single collection.
Instance Attribute Summary
Attributes inherited from Moon::Response::JSON
Instance Method Summary collapse
-
#initialize(key, object, formatters) ⇒ Model
constructor
A new instance of Model.
Methods inherited from Moon::Response::JSON
Methods inherited from Base
Constructor Details
#initialize(key, object, formatters) ⇒ Model
Returns a new instance of Model.
5 6 7 8 |
# File 'lib/moon/response/json/model.rb', line 5 def initialize(key, object, formatters) @key, @object, @formatters = key, object, formatters super 200, hash end |