Sha256: 6e84236a9bd9fe8829875cb231895a45b5cef982cf5d9c2c32424c76e40d7902

Contents?: true

Size: 615 Bytes

Versions: 8

Compression:

Stored size: 615 Bytes

Contents

module Braintree
  class ExchangeRateQuote
    include BaseModule # :nodoc:

    attr_reader :attrs
    attr_reader :base_amount
    attr_reader :exchange_rate
    attr_reader :expires_at
    attr_reader :id
    attr_reader :quote_amount
    attr_reader :refreshes_at
    attr_reader :trade_rate

    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.rb
braintree-4.14.0 lib/braintree/exchange_rate_quote.rb
braintree-4.13.0 lib/braintree/exchange_rate_quote.rb
braintree-4.12.0 lib/braintree/exchange_rate_quote.rb
braintree-4.11.0 lib/braintree/exchange_rate_quote.rb
braintree-4.10.0 lib/braintree/exchange_rate_quote.rb
braintree-4.9.0 lib/braintree/exchange_rate_quote.rb
braintree-4.8.0 lib/braintree/exchange_rate_quote.rb