Class: OMCMS::Response::Body
- Inherits:
-
Object
- Object
- OMCMS::Response::Body
- Defined in:
- lib/omcms/response/body.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#body ⇒ Object
readonly
Returns the value of attribute body.
Instance Method Summary collapse
-
#initialize(client, host, response) ⇒ Body
constructor
A new instance of Body.
- #to_json(*_args) ⇒ Object
Constructor Details
#initialize(client, host, response) ⇒ Body
Returns a new instance of Body.
8 9 10 11 12 |
# File 'lib/omcms/response/body.rb', line 8 def initialize(client, host, response) @client = client @body = response.body @host = host end |
Instance Attribute Details
#body ⇒ Object (readonly)
Returns the value of attribute body.
6 7 8 |
# File 'lib/omcms/response/body.rb', line 6 def body @body end |
Instance Method Details
#to_json(*_args) ⇒ Object
14 15 16 |
# File 'lib/omcms/response/body.rb', line 14 def to_json(*_args) parse(@body) end |