Class: Casper::Entity::DeployHeader
- Inherits:
-
Object
- Object
- Casper::Entity::DeployHeader
- Defined in:
- lib/entity/deploy_header.rb
Overview
Header information of a Deploy.
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.
14 15 16 17 18 19 20 21 22 |
# File 'lib/entity/deploy_header.rb', line 14 def initialize(header = {}) @account = header[:account] @timestamp = 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
Returns account.
26 27 28 |
# File 'lib/entity/deploy_header.rb', line 26 def get_account @account end |
#get_body_hash ⇒ String
Returns body_hash.
46 47 48 |
# File 'lib/entity/deploy_header.rb', line 46 def get_body_hash @body_hash end |
#get_chain_name ⇒ String
Returns chain_name.
56 57 58 |
# File 'lib/entity/deploy_header.rb', line 56 def get_chain_name @chain_name end |
#get_dependencies ⇒ Array
Returns dependencies.
51 52 53 |
# File 'lib/entity/deploy_header.rb', line 51 def get_dependencies @dependencies end |
#get_gas_price ⇒ Integer
Returns gas_price.
41 42 43 |
# File 'lib/entity/deploy_header.rb', line 41 def get_gas_price @gas_price end |
#get_timestamp ⇒ Integer
Returns timestamp.
31 32 33 |
# File 'lib/entity/deploy_header.rb', line 31 def @timestamp end |
#get_ttl ⇒ Integer
Returns ttl.
36 37 38 |
# File 'lib/entity/deploy_header.rb', line 36 def get_ttl @ttl end |