Class: Trevosdk::TransportResponse

Inherits:
Struct
  • Object
show all
Defined in:
lib/trevosdk/transport.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bodyObject

Returns the value of attribute body

Returns:

  • (Object)

    the current value of body



26
27
28
# File 'lib/trevosdk/transport.rb', line 26

def body
  @body
end

#headersObject

Returns the value of attribute headers

Returns:

  • (Object)

    the current value of headers



26
27
28
# File 'lib/trevosdk/transport.rb', line 26

def headers
  @headers
end

#statusObject

Returns the value of attribute status

Returns:

  • (Object)

    the current value of status



26
27
28
# File 'lib/trevosdk/transport.rb', line 26

def status
  @status
end

Instance Method Details

#jsonObject



27
28
29
# File 'lib/trevosdk/transport.rb', line 27

def json
  JSON.parse(body.to_s)
end