Sha256: 2cc0323decfb1967585882d7cff6421d631f237b502d986a1042a49ef0d72acf

Contents?: true

Size: 331 Bytes

Versions: 16

Compression:

Stored size: 331 Bytes

Contents

class Portmone::Responses::BaseResponse
  attr_reader :response
  attr_reader :xml_data

  def initialize(faraday_response, currency:, timezone:)
    @response = faraday_response
    @xml_data = MultiXml.parse(@response.body)
    @currency = currency
    @timezone = timezone
  end

  def http_status
    response.status
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
portmone-0.0.16 lib/portmone/responses/base_response.rb
portmone-0.0.15 lib/portmone/responses/base_response.rb
portmone-0.0.14 lib/portmone/responses/base_response.rb
portmone-0.0.13 lib/portmone/responses/base_response.rb
portmone-0.0.12 lib/portmone/responses/base_response.rb
portmone-0.0.11 lib/portmone/responses/base_response.rb
portmone-0.0.10 lib/portmone/responses/base_response.rb
portmone-0.0.9 lib/portmone/responses/base_response.rb
portmone-0.0.8 lib/portmone/responses/base_response.rb
portmone-0.0.7 lib/portmone/responses/base_response.rb
portmone-0.0.6 lib/portmone/responses/base_response.rb
portmone-0.0.5 lib/portmone/responses/base_response.rb
portmone-0.0.4 lib/portmone/responses/base_response.rb
portmone-0.0.3 lib/portmone/responses/base_response.rb
portmone-0.0.2 lib/portmone/responses/base_response.rb
portmone-0.0.1 lib/portmone/responses/base_response.rb