Sha256: 91a484e24abfa224cf4f78a951c7d5b482181ce0e522935ce308db99ccb752a2

Contents?: true

Size: 540 Bytes

Versions: 8

Compression:

Stored size: 540 Bytes

Contents

module Braintree
  class ExchangeRateQuoteInput
    include BaseModule # :nodoc:

    attr_reader :attrs
    attr_reader :base_currency
    attr_reader :base_amount
    attr_reader :markup
    attr_reader :quote_currency

    def initialize(attributes) # :nodoc:
      @attrs = attributes.keys
      set_instance_variables_from_hash(attributes)
    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_input.rb
braintree-4.14.0 lib/braintree/exchange_rate_quote_input.rb
braintree-4.13.0 lib/braintree/exchange_rate_quote_input.rb
braintree-4.12.0 lib/braintree/exchange_rate_quote_input.rb
braintree-4.11.0 lib/braintree/exchange_rate_quote_input.rb
braintree-4.10.0 lib/braintree/exchange_rate_quote_input.rb
braintree-4.9.0 lib/braintree/exchange_rate_quote_input.rb
braintree-4.8.0 lib/braintree/exchange_rate_quote_input.rb