Class: Postmen::Money

Inherits:
Object
  • Object
show all
Includes:
Common
Defined in:
lib/postmen/money.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Common

#to_hash

Constructor Details

#initialize(options) ⇒ Money

Returns a new instance of Money.



8
9
10
11
# File 'lib/postmen/money.rb', line 8

def initialize(options)
  @amount = options[:amount]
  @currency = options[:currency]
end

Instance Attribute Details

#amountObject (readonly)

Returns the value of attribute amount.



5
6
7
# File 'lib/postmen/money.rb', line 5

def amount
  @amount
end

#currencyObject (readonly)

Returns the value of attribute currency.



5
6
7
# File 'lib/postmen/money.rb', line 5

def currency
  @currency
end