Sha256: f3f3611cb6db99ea6df88ac9ea5c66b66666291b238b32394bc890722c5accb6

Contents?: true

Size: 519 Bytes

Versions: 8

Compression:

Stored size: 519 Bytes

Contents

module Braintree
  class ExchangeRateQuoteRequest
    include BaseModule # :nodoc:

    attr_reader :quotes

    def initialize(attributes) # :nodoc:
      @attrs = attributes.keys
      set_instance_variables_from_hash(attributes)
      @quotes = (@quotes || []).map { |quote_hash| ExchangeRateQuoteInput.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_request.rb
braintree-4.14.0 lib/braintree/exchange_rate_quote_request.rb
braintree-4.13.0 lib/braintree/exchange_rate_quote_request.rb
braintree-4.12.0 lib/braintree/exchange_rate_quote_request.rb
braintree-4.11.0 lib/braintree/exchange_rate_quote_request.rb
braintree-4.10.0 lib/braintree/exchange_rate_quote_request.rb
braintree-4.9.0 lib/braintree/exchange_rate_quote_request.rb
braintree-4.8.0 lib/braintree/exchange_rate_quote_request.rb