Class: Casper::Entity::DeployInfo

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

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)


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

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



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

def get_from 
  @from  
end

#get_gasString

Returns gas.

Returns:

  • (String)

    gas



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

def get_gas
  @gas  
end

#get_hashString

Returns hash.

Returns:

  • (String)

    hash



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

def get_hash
  @hash 
end

#get_sourceString

Returns source.

Returns:

  • (String)

    source



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

def get_source 
  @source  
end

#get_transfersArray

Returns transfers.

Returns:

  • (Array)

    transfers



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

def get_transfers
  @transfers 
end