Class: Casper::Entity::DeployHeader

Inherits:
Object
  • Object
show all
Defined in:
lib/entity/deploy_header.rb

Instance Method Summary collapse

Constructor Details

#initialize(header = {}) ⇒ DeployHeader

Returns a new instance of DeployHeader.

Options Hash (header):

  • :account (String)
  • :timestamp (Integer)
  • :ttl (Integer)
  • :gas_price (Integer)
  • :body_hash (String)
  • :dependencies (Array)
  • :chain_name (String)


13
14
15
16
17
18
19
20
21
# File 'lib/entity/deploy_header.rb', line 13

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_accountString



25
26
27
# File 'lib/entity/deploy_header.rb', line 25

def 
  @account
end

#get_body_hashString



45
46
47
# File 'lib/entity/deploy_header.rb', line 45

def get_body_hash
  @body_hash
end

#get_chain_nameString



55
56
57
# File 'lib/entity/deploy_header.rb', line 55

def get_chain_name
  @chain_name
end

#get_dependenciesArray



50
51
52
# File 'lib/entity/deploy_header.rb', line 50

def get_dependencies
  @dependencies
end

#get_gas_priceInteger



40
41
42
# File 'lib/entity/deploy_header.rb', line 40

def get_gas_price
  @gas_price
end

#get_timestampInteger



30
31
32
# File 'lib/entity/deploy_header.rb', line 30

def get_timestamp
  @timestamp
end

#get_ttlInteger



35
36
37
# File 'lib/entity/deploy_header.rb', line 35

def get_ttl
  @ttl
end