class Braintree::ExchangeRateQuoteResponse

Attributes

quotes[R]

Public Class Methods

new(attributes) click to toggle source
# File lib/braintree/exchange_rate_quote_response.rb, line 7
def initialize(attributes)
  @attrs = attributes.keys
  set_instance_variables_from_hash(attributes)
  @quotes = (@quotes || []).map { |quote_hash| ExchangeRateQuote.new(quote_hash) }
end

Public Instance Methods

inspect() click to toggle source
# File lib/braintree/exchange_rate_quote_response.rb, line 13
def inspect
  inspected_attributes = @attrs.map { |attr| "#{attr}:#{send(attr).inspect}" }
  "#<#{self.class} #{inspected_attributes.join(" ")}>"
end