Class: OMCMS::Response::Body

Inherits:
Object
  • Object
show all
Defined in:
lib/omcms/response/body.rb

Direct Known Subclasses

Component, Offering, OfferingData

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#bodyObject (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