class XingApi::Response

Attributes

headers[R]

Public Class Methods

new(body, headers) click to toggle source
Calls superclass method
# File lib/xing_api/response.rb, line 7
def initialize(body, headers)
  @headers = headers

  body =
    begin
      JSON.parse(body, symbolize_names: true)
    rescue JSON::ParserError
      {}
    end

  super(body)
end