Class: Braintree::ExchangeRateQuoteInput

Inherits:
Object
  • Object
show all
Includes:
BaseModule
Defined in:
lib/braintree/exchange_rate_quote_input.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from BaseModule

included

Methods included from BaseModule::Methods

#copy_instance_variables_from_object, #return_object_or_raise, #set_instance_variables_from_hash, #singleton_class

Constructor Details

#initialize(attributes) ⇒ ExchangeRateQuoteInput

Returns a new instance of ExchangeRateQuoteInput.



11
12
13
14
# File 'lib/braintree/exchange_rate_quote_input.rb', line 11

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

Instance Attribute Details

#attrsObject (readonly)

Returns the value of attribute attrs.



5
6
7
# File 'lib/braintree/exchange_rate_quote_input.rb', line 5

def attrs
  @attrs
end

#base_amountObject (readonly)

Returns the value of attribute base_amount.



7
8
9
# File 'lib/braintree/exchange_rate_quote_input.rb', line 7

def base_amount
  @base_amount
end

#base_currencyObject (readonly)

Returns the value of attribute base_currency.



6
7
8
# File 'lib/braintree/exchange_rate_quote_input.rb', line 6

def base_currency
  @base_currency
end

#markupObject (readonly)

Returns the value of attribute markup.



8
9
10
# File 'lib/braintree/exchange_rate_quote_input.rb', line 8

def markup
  @markup
end

#quote_currencyObject (readonly)

Returns the value of attribute quote_currency.



9
10
11
# File 'lib/braintree/exchange_rate_quote_input.rb', line 9

def quote_currency
  @quote_currency
end

Instance Method Details

#inspectObject



16
17
18
19
# File 'lib/braintree/exchange_rate_quote_input.rb', line 16

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