Class: Casper::Entity::DeployHeader
- Inherits:
-
Object
- Object
- Casper::Entity::DeployHeader
- Defined in:
- lib/entity/deploy_header.rb
Instance Method Summary collapse
-
#get_account ⇒ String
Account.
-
#get_body_hash ⇒ String
Body_hash.
-
#get_chain_name ⇒ String
Chain_name.
-
#get_dependencies ⇒ Array
Dependencies.
-
#get_gas_price ⇒ Integer
Gas_price.
-
#get_timestamp ⇒ Integer
Timestamp.
-
#get_ttl ⇒ Integer
Ttl.
-
#initialize(header = {}) ⇒ DeployHeader
constructor
A new instance of DeployHeader.
Constructor Details
#initialize(header = {}) ⇒ DeployHeader
Returns a new instance of DeployHeader.
13 14 15 16 17 18 19 20 21 |
# File 'lib/entity/deploy_header.rb', line 13 def initialize(header = {}) @account = header[:account] = header[:timestamp] @ttl = header[:ttl] @gas_price = header[:gas_price] @body_hash = header[:body_hash] @dependencies = header[:dependencies] @chain_name = header[:chain_name] end |
Instance Method Details
#get_account ⇒ String
25 26 27 |
# File 'lib/entity/deploy_header.rb', line 25 def get_account @account end |
#get_body_hash ⇒ String
45 46 47 |
# File 'lib/entity/deploy_header.rb', line 45 def get_body_hash @body_hash end |
#get_chain_name ⇒ String
55 56 57 |
# File 'lib/entity/deploy_header.rb', line 55 def get_chain_name @chain_name end |
#get_dependencies ⇒ Array
50 51 52 |
# File 'lib/entity/deploy_header.rb', line 50 def get_dependencies @dependencies end |
#get_gas_price ⇒ Integer
40 41 42 |
# File 'lib/entity/deploy_header.rb', line 40 def get_gas_price @gas_price end |
#get_timestamp ⇒ Integer
30 31 32 |
# File 'lib/entity/deploy_header.rb', line 30 def end |
#get_ttl ⇒ Integer
35 36 37 |
# File 'lib/entity/deploy_header.rb', line 35 def get_ttl @ttl end |