Class: Casper::Entity::Transfer
- Inherits:
-
Object
- Object
- Casper::Entity::Transfer
- Defined in:
- lib/entity/transfer.rb
Instance Method Summary collapse
-
#get_amount ⇒ String
Amount.
-
#get_deploy_hash ⇒ String
Deploy_hash.
-
#get_from ⇒ String
From.
-
#get_gas ⇒ String
Gas.
-
#get_id ⇒ Integer
Id.
-
#get_source ⇒ String
Source.
-
#get_target ⇒ String
Target.
-
#get_to ⇒ String
To.
-
#initialize(transfer = {}) ⇒ Transfer
constructor
A new instance of Transfer.
Constructor Details
#initialize(transfer = {}) ⇒ Transfer
Returns a new instance of Transfer.
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/entity/transfer.rb', line 14 def initialize(transfer = {}) @deploy_hash = transfer[:deploy_hash] @from = transfer[:from] @to = transfer[:to] @source = transfer[:source] @target = transfer[:target] @amount = transfer[:amount] @gas = transfer[:gas] @id = transfer[:id] end |
Instance Method Details
#get_amount ⇒ String
Returns amount.
51 52 53 |
# File 'lib/entity/transfer.rb', line 51 def get_amount @amount end |
#get_deploy_hash ⇒ String
Returns deploy_hash.
26 27 28 |
# File 'lib/entity/transfer.rb', line 26 def get_deploy_hash @deploy_hash end |
#get_from ⇒ String
Returns from.
31 32 33 |
# File 'lib/entity/transfer.rb', line 31 def get_from @from end |
#get_gas ⇒ String
Returns gas.
56 57 58 |
# File 'lib/entity/transfer.rb', line 56 def get_gas @gas end |
#get_id ⇒ Integer
Returns id.
60 61 62 |
# File 'lib/entity/transfer.rb', line 60 def get_id @id end |
#get_source ⇒ String
Returns source.
41 42 43 |
# File 'lib/entity/transfer.rb', line 41 def get_source @source end |
#get_target ⇒ String
Returns target.
46 47 48 |
# File 'lib/entity/transfer.rb', line 46 def get_target @target end |
#get_to ⇒ String
Returns to.
36 37 38 |
# File 'lib/entity/transfer.rb', line 36 def get_to @to end |