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(account, timestamp, ttl, gas_price, body_hash, dependencies, chain_name) ⇒ DeployHeader
constructor
A new instance of DeployHeader.
Constructor Details
#initialize(account, timestamp, ttl, gas_price, body_hash, dependencies, chain_name) ⇒ DeployHeader
Returns a new instance of DeployHeader.
12 13 14 15 16 17 18 19 20 |
# File 'lib/entity/deploy_header.rb', line 12 def initialize(account, , ttl, gas_price, body_hash, dependencies, chain_name) @account = account @timestamp = @ttl = ttl @gas_price = gas_price @body_hash = body_hash @dependencies = dependencies @chain_name = chain_name end |
Instance Method Details
#get_account ⇒ String
Returns account.
23 24 25 |
# File 'lib/entity/deploy_header.rb', line 23 def get_account @account end |
#get_body_hash ⇒ String
Returns body_hash.
43 44 45 |
# File 'lib/entity/deploy_header.rb', line 43 def get_body_hash @body_hash end |
#get_chain_name ⇒ String
Returns chain_name.
53 54 55 |
# File 'lib/entity/deploy_header.rb', line 53 def get_chain_name @chain_name end |
#get_dependencies ⇒ Array
Returns dependencies.
48 49 50 |
# File 'lib/entity/deploy_header.rb', line 48 def get_dependencies @dependencies end |
#get_gas_price ⇒ Integer
Returns gas_price.
38 39 40 |
# File 'lib/entity/deploy_header.rb', line 38 def get_gas_price @gas_price end |
#get_timestamp ⇒ Integer
Returns timestamp.
28 29 30 |
# File 'lib/entity/deploy_header.rb', line 28 def @timestamp end |
#get_ttl ⇒ Integer
Returns ttl.
33 34 35 |
# File 'lib/entity/deploy_header.rb', line 33 def get_ttl @ttl end |