Class: Casper::Entity::DeployHeader

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

Instance Method Summary collapse

Constructor Details

#initialize(account, timestamp, ttl, gas_price, body_hash, dependencies, chain_name) ⇒ DeployHeader

Returns a new instance of DeployHeader.

Parameters:

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


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

def initialize(, timestamp, ttl, gas_price, body_hash, dependencies, chain_name)
  @account = 
  @timestamp = timestamp
  @ttl = ttl
  @gas_price = gas_price
  @body_hash = body_hash
  @dependencies = dependencies
  @chain_name = chain_name
end

Instance Method Details

#get_accountString

Returns account.

Returns:

  • (String)

    account



23
24
25
# File 'lib/entity/deploy_header.rb', line 23

def 
  @account
end

#get_body_hashString

Returns body_hash.

Returns:

  • (String)

    body_hash



43
44
45
# File 'lib/entity/deploy_header.rb', line 43

def get_body_hash
  @body_hash
end

#get_chain_nameString

Returns chain_name.

Returns:

  • (String)

    chain_name



53
54
55
# File 'lib/entity/deploy_header.rb', line 53

def get_chain_name
  @chain_name
end

#get_dependenciesArray

Returns dependencies.

Returns:

  • (Array)

    dependencies



48
49
50
# File 'lib/entity/deploy_header.rb', line 48

def get_dependencies
  @dependencies
end

#get_gas_priceInteger

Returns gas_price.

Returns:

  • (Integer)

    gas_price



38
39
40
# File 'lib/entity/deploy_header.rb', line 38

def get_gas_price
  @gas_price
end

#get_timestampInteger

Returns timestamp.

Returns:

  • (Integer)

    timestamp



28
29
30
# File 'lib/entity/deploy_header.rb', line 28

def get_timestamp
  @timestamp
end

#get_ttlInteger

Returns ttl.

Returns:

  • (Integer)

    ttl



33
34
35
# File 'lib/entity/deploy_header.rb', line 33

def get_ttl
  @ttl
end