Class: Casper::Entity::StoredValue

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

Overview

A class that represents a value stored in global state.

Instance Method Summary collapse

Constructor Details

#initialize(cl_value, account, contract, contract_package, transfer, deploy_info, era_info, bid, withdraw) ⇒ StoredValue

Returns a new instance of StoredValue.



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/entity/stored_value.rb', line 7

def initialize(cl_value, , contract, contract_package, transfer, deploy_info, era_info, bid, withdraw)
  @cl_value = cl_value
  @account = 
  @contract = contract
  @contract_package = contract_package 
  @transfer = transfer
  @deploy_info = deploy_info
  @era_info = era_info
  @bid = bid
  @withdraw = withdraw
end

Instance Method Details

#get_accountObject



23
24
25
# File 'lib/entity/stored_value.rb', line 23

def 
  @account
end

#get_bidObject



47
48
49
# File 'lib/entity/stored_value.rb', line 47

def get_bid
  @bid
end

#get_cl_valueObject



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

def get_cl_value
  @cl_value
end

#get_contractObject



27
28
29
# File 'lib/entity/stored_value.rb', line 27

def get_contract
  @contract
end

#get_contract_packageObject



31
32
33
# File 'lib/entity/stored_value.rb', line 31

def get_contract_package
  @contract_package
end

#get_deploy_infoObject



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

def get_deploy_info
  @deploy_info
end

#get_era_infoObject



43
44
45
# File 'lib/entity/stored_value.rb', line 43

def get_era_info
  @era_info
end

#get_transferObject



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

def get_transfer
  @transfer
end

#get_withdrawObject



51
52
53
# File 'lib/entity/stored_value.rb', line 51

def get_withdraw
  @withdraw
end