Sha256: e9391d616549165123468f59ee88b01a9e6ccea942d5b2329916af1747c2f366

Contents?: true

Size: 510 Bytes

Versions: 10

Compression:

Stored size: 510 Bytes

Contents

module Braintree
  class ExchangeRateQuoteInput
    include BaseModule

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

    def initialize(attributes)
      @attrs = attributes.keys
      set_instance_variables_from_hash(attributes)
    end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
braintree-4.25.0 lib/braintree/exchange_rate_quote_input.rb
braintree-4.24.0 lib/braintree/exchange_rate_quote_input.rb
braintree-4.23.0 lib/braintree/exchange_rate_quote_input.rb
braintree-4.22.0 lib/braintree/exchange_rate_quote_input.rb
braintree-4.21.0 lib/braintree/exchange_rate_quote_input.rb
braintree-4.20.0 lib/braintree/exchange_rate_quote_input.rb
braintree-4.19.0 lib/braintree/exchange_rate_quote_input.rb
braintree-4.18.0 lib/braintree/exchange_rate_quote_input.rb
braintree-4.17.0 lib/braintree/exchange_rate_quote_input.rb
braintree-4.16.0 lib/braintree/exchange_rate_quote_input.rb