Method: Casper::Entity::BlockBody#initialize

Defined in:
lib/entity/block_body.rb

#initialize(body = {}) ⇒ BlockBody

Returns a new instance of BlockBody.

Parameters:

  • body (Hash) (defaults to: {})
  • [String] (Hash)

    a customizable set of options

  • [Array] (Hash)

    a customizable set of options



10
11
12
13
14
# File 'lib/entity/block_body.rb', line 10

def initialize(body =  {})
  @proposer = body[:proposer]
  @deploy_hashes = body[:deploy_hashes]
  @transfer_hashes = body[:transfer_hashes]
end