Class: Casper::Entity::Deploy

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

Overview

Deploy, an item containing a smart contract along with the requester’s signature(s).

Instance Method Summary collapse

Constructor Details

#initialize(hash, header, payment, session, approvals) ⇒ Deploy

Returns a new instance of Deploy.

Parameters:



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

def initialize(hash, header, payment, session, approvals)
  @hash = hash
  @header = header
  @payment = payment
  @session = session
  @approvals = approvals
end

Instance Method Details

#get_approvalsDeployApproval

Returns approvals.

Returns:



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

def get_approvals
  @approvals  
end

#get_hashString

Returns hash.

Returns:

  • (String)

    hash



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

def get_hash
  @hash 
end

#get_headerDeployHeader

Returns header.

Returns:



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

def get_header
  @header 
end

#get_paymentDeployExecutable

Returns payment.

Returns:



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

def get_payment 
  @payment  
end

#get_sessionDeployExecutable

Returns session.

Returns:



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

def get_session 
  @session  
end