Sha256: 58a90fd79bd91abe00045b79fbd4165ebd08005157715d4bd9e6f225f6ed3a9e

Contents?: true

Size: 489 Bytes

Versions: 8

Compression:

Stored size: 489 Bytes

Contents

module Braintree
  class ExchangeRateQuoteRequest
    include BaseModule

    attr_reader :quotes

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

    def inspect
      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.23.0 lib/braintree/exchange_rate_quote_request.rb
braintree-4.22.0 lib/braintree/exchange_rate_quote_request.rb
braintree-4.21.0 lib/braintree/exchange_rate_quote_request.rb
braintree-4.20.0 lib/braintree/exchange_rate_quote_request.rb
braintree-4.19.0 lib/braintree/exchange_rate_quote_request.rb
braintree-4.18.0 lib/braintree/exchange_rate_quote_request.rb
braintree-4.17.0 lib/braintree/exchange_rate_quote_request.rb
braintree-4.16.0 lib/braintree/exchange_rate_quote_request.rb