Method: Stellar::Amount#initialize

Defined in:
lib/stellar/amount.rb

#initialize(amount, asset = Stellar::Asset.native) ⇒ Amount

Returns a new instance of Amount.

Parameters:

  • (defaults to: Stellar::Asset.native)


8
9
10
11
12
13
# File 'lib/stellar/amount.rb', line 8

def initialize(amount, asset = Stellar::Asset.native)
  # TODO: how are we going to handle decimal considerations?

  @amount = amount
  @asset = asset
end