class Tmdby::Response

Attributes

body[R]
code[R]
headers[R]
http_verb[R]
post_params[R]
raw_body[R]
uri[R]

Public Class Methods

new(response, uri, http_verb, post_params) click to toggle source
# File lib/tmdby/response.rb, line 7
def initialize(response, uri, http_verb, post_params)
  @code = response.code
  @headers = response.to_hash
  @raw_body = response.body
  @body = JSON.parse(response.body)
  @uri = uri
  @http_verb = http_verb.upcase
  @post_params = post_params
end