Class: Casper::Entity::Deploy
- Inherits:
-
Object
- Object
- Casper::Entity::Deploy
- 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
-
#get_approvals ⇒ DeployApproval
Approvals.
-
#get_hash ⇒ String
Hash.
-
#get_header ⇒ DeployHeader
Header.
-
#get_payment ⇒ DeployExecutable
Payment.
-
#get_session ⇒ DeployExecutable
Session.
-
#initialize(hash, header, payment, session, approvals) ⇒ Deploy
constructor
A new instance of Deploy.
Constructor Details
#initialize(hash, header, payment, session, approvals) ⇒ Deploy
Returns a new instance of Deploy.
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_approvals ⇒ DeployApproval
Returns approvals.
40 41 42 |
# File 'lib/entity/deploy.rb', line 40 def get_approvals @approvals end |
#get_hash ⇒ String
Returns hash.
20 21 22 |
# File 'lib/entity/deploy.rb', line 20 def get_hash @hash end |
#get_header ⇒ DeployHeader
Returns header.
25 26 27 |
# File 'lib/entity/deploy.rb', line 25 def get_header @header end |
#get_payment ⇒ DeployExecutable
Returns payment.
30 31 32 |
# File 'lib/entity/deploy.rb', line 30 def get_payment @payment end |
#get_session ⇒ DeployExecutable
Returns session.
35 36 37 |
# File 'lib/entity/deploy.rb', line 35 def get_session @session end |