Class: Casper::Entity::DeployInfo

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

Overview

Information relating to the given Deploy.

Instance Method Summary collapse

Constructor Details

#initialize(hash, transfers, from, source, gas) ⇒ DeployInfo

Returns a new instance of DeployInfo.

Parameters:

  • hash (String)
  • transfers (Array)
  • from (String)
  • source (String)
  • gas (String)


11
12
13
14
15
16
17
# File 'lib/entity/deploy_info.rb', line 11

def initialize(hash, transfers, from, source, gas)
  @hash = hash
  @transfers = transfers
  @from = from
  @source = source
  @gas = gas
end

Instance Method Details

#get_fromString

Returns from.

Returns:

  • (String)

    from



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

def get_from 
  @from  
end

#get_gasString

Returns gas.

Returns:

  • (String)

    gas



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

def get_gas
  @gas  
end

#get_hashString

Returns hash.

Returns:

  • (String)

    hash



20
21
22
# File 'lib/entity/deploy_info.rb', line 20

def get_hash
  @hash 
end

#get_sourceString

Returns source.

Returns:

  • (String)

    source



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

def get_source 
  @source  
end

#get_transfersArray

Returns transfers.

Returns:

  • (Array)

    transfers



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

def get_transfers
  @transfers 
end