Class: OpenAssets::SendAssetParam

Inherits:
Object
  • Object
show all
Defined in:
lib/openassets/send_asset_param.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(asset_id, amount, to, from = nil) ⇒ SendAssetParam

Returns a new instance of SendAssetParam.



9
10
11
12
13
14
# File 'lib/openassets/send_asset_param.rb', line 9

def initialize(asset_id, amount, to, from = nil)
  @asset_id = asset_id
  @amount = amount
  @to = to
  @from = from
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



5
6
7
# File 'lib/openassets/send_asset_param.rb', line 5

def amount
  @amount
end

#asset_idObject

Returns the value of attribute asset_id.



4
5
6
# File 'lib/openassets/send_asset_param.rb', line 4

def asset_id
  @asset_id
end

#fromObject

Returns the value of attribute from.



7
8
9
# File 'lib/openassets/send_asset_param.rb', line 7

def from
  @from
end

#toObject

Returns the value of attribute to.



6
7
8
# File 'lib/openassets/send_asset_param.rb', line 6

def to
  @to
end