Class: Square::Connect::Money

Inherits:
Object
  • Object
show all
Defined in:
lib/square/connect/money.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ Money

Returns a new instance of Money.



6
7
8
9
# File 'lib/square/connect/money.rb', line 6

def initialize(attributes = {})
  self.amount = attributes[:amount]
  self.currency_code = attributes[:currency_code]
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



4
5
6
# File 'lib/square/connect/money.rb', line 4

def amount
  @amount
end

#currency_codeObject

Returns the value of attribute currency_code.



4
5
6
# File 'lib/square/connect/money.rb', line 4

def currency_code
  @currency_code
end