Sha256: 42ea81cb313c4bce7501d5d46a3a880e9bb1ddd8c0c8fd28dab0ffe196cdf721

Contents?: true

Size: 515 Bytes

Versions: 8

Compression:

Stored size: 515 Bytes

Contents

module Braintree
  class ExchangeRateQuoteResponse
    include BaseModule # :nodoc:

    attr_reader :quotes

    def initialize(attributes) # :nodoc:
      @attrs = attributes.keys
      set_instance_variables_from_hash(attributes)
      @quotes = (@quotes || []).map { |quote_hash| ExchangeRateQuote.new(quote_hash) }
    end

    def inspect # :nodoc:
      inspected_attributes = @attrs.map { |attr| "#{attr}:#{send(attr).inspect}" }
      "#<#{self.class} #{inspected_attributes.join(" ")}>"
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
braintree-4.15.0 lib/braintree/exchange_rate_quote_response.rb
braintree-4.14.0 lib/braintree/exchange_rate_quote_response.rb
braintree-4.13.0 lib/braintree/exchange_rate_quote_response.rb
braintree-4.12.0 lib/braintree/exchange_rate_quote_response.rb
braintree-4.11.0 lib/braintree/exchange_rate_quote_response.rb
braintree-4.10.0 lib/braintree/exchange_rate_quote_response.rb
braintree-4.9.0 lib/braintree/exchange_rate_quote_response.rb
braintree-4.8.0 lib/braintree/exchange_rate_quote_response.rb