Sha256: d3c04e17b50136c7849713f80b0afd931824ecf337e426757e155927f6fddcd5

Contents?: true

Size: 325 Bytes

Versions: 10

Compression:

Stored size: 325 Bytes

Contents

module Ebanx
  class Response
    attr_accessor :http_code, :raw_response, :response

    def initialize(response, response_type)
      @http_code    = response.code
      @raw_response = response.to_str
      @response     = response.to_str

      @response = JSON.parse @response if response_type == :json
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ebanx-1.3.5 lib/ebanx/response.rb
ebanx-1.3.4 lib/ebanx/response.rb
ebanx-1.3.3 lib/ebanx/response.rb
ebanx-1.3.2 lib/ebanx/response.rb
ebanx-1.3.1 lib/ebanx/response.rb
ebanx-1.3.0 lib/ebanx/response.rb
ebanx-1.2.0 lib/ebanx/response.rb
ebanx-1.1.0 lib/ebanx/response.rb
ebanx-1.0.2 lib/ebanx/response.rb
ebanx-1.0.0 lib/ebanx/response.rb