Class: Casper::Entity::StoredValue
- Inherits:
-
Object
- Object
- Casper::Entity::StoredValue
- Defined in:
- lib/entity/stored_value.rb
Overview
A class that represents a value stored in global state.
Instance Method Summary collapse
- #get_account ⇒ Object
- #get_bid ⇒ Object
- #get_cl_value ⇒ Object
- #get_contract ⇒ Object
- #get_contract_package ⇒ Object
- #get_deploy_info ⇒ Object
- #get_era_info ⇒ Object
- #get_transfer ⇒ Object
- #get_withdraw ⇒ Object
-
#initialize(cl_value, account, contract, contract_package, transfer, deploy_info, era_info, bid, withdraw) ⇒ StoredValue
constructor
A new instance of StoredValue.
Constructor Details
#initialize(cl_value, account, contract, contract_package, transfer, deploy_info, era_info, bid, withdraw) ⇒ StoredValue
Returns a new instance of StoredValue.
7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/entity/stored_value.rb', line 7 def initialize(cl_value, account, contract, contract_package, transfer, deploy_info, era_info, bid, withdraw) @cl_value = cl_value @account = account @contract = contract @contract_package = contract_package @transfer = transfer @deploy_info = deploy_info @era_info = era_info @bid = bid @withdraw = withdraw end |
Instance Method Details
#get_account ⇒ Object
23 24 25 |
# File 'lib/entity/stored_value.rb', line 23 def get_account @account end |
#get_bid ⇒ Object
47 48 49 |
# File 'lib/entity/stored_value.rb', line 47 def get_bid @bid end |
#get_cl_value ⇒ Object
19 20 21 |
# File 'lib/entity/stored_value.rb', line 19 def get_cl_value @cl_value end |
#get_contract ⇒ Object
27 28 29 |
# File 'lib/entity/stored_value.rb', line 27 def get_contract @contract end |
#get_contract_package ⇒ Object
31 32 33 |
# File 'lib/entity/stored_value.rb', line 31 def get_contract_package @contract_package end |
#get_deploy_info ⇒ Object
39 40 41 |
# File 'lib/entity/stored_value.rb', line 39 def get_deploy_info @deploy_info end |
#get_era_info ⇒ Object
43 44 45 |
# File 'lib/entity/stored_value.rb', line 43 def get_era_info @era_info end |
#get_transfer ⇒ Object
35 36 37 |
# File 'lib/entity/stored_value.rb', line 35 def get_transfer @transfer end |
#get_withdraw ⇒ Object
51 52 53 |
# File 'lib/entity/stored_value.rb', line 51 def get_withdraw @withdraw end |