Class: OpenAssets::SendAssetParam
- Inherits:
-
Object
- Object
- OpenAssets::SendAssetParam
- Defined in:
- lib/openassets/send_asset_param.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#asset_id ⇒ Object
Returns the value of attribute asset_id.
-
#from ⇒ Object
Returns the value of attribute from.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
-
#initialize(asset_id, amount, to, from = nil) ⇒ SendAssetParam
constructor
A new instance of SendAssetParam.
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
#amount ⇒ Object
Returns the value of attribute amount.
5 6 7 |
# File 'lib/openassets/send_asset_param.rb', line 5 def amount @amount end |
#asset_id ⇒ Object
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 |
#from ⇒ Object
Returns the value of attribute from.
7 8 9 |
# File 'lib/openassets/send_asset_param.rb', line 7 def from @from end |
#to ⇒ Object
Returns the value of attribute to.
6 7 8 |
# File 'lib/openassets/send_asset_param.rb', line 6 def to @to end |