Class: Casper::Entity::BidInfo
- Inherits:
-
Object
- Object
- Casper::Entity::BidInfo
- Defined in:
- lib/entity/bid_info.rb
Overview
BidInfo
Instance Method Summary collapse
-
#get_bonding_purse ⇒ String
Bonding_purse.
-
#get_delegation_rate ⇒ Integer
Delegation_rate.
-
#get_delegators ⇒ Delegator
Delegators.
-
#get_inactive ⇒ true, false
Inactive.
-
#get_staked_amount ⇒ String
Staked_amount.
-
#get_vesting_schedule ⇒ VestingSchedule
Vesting_schedule.
-
#initialize(bonding_purse, staked_amount, delegation_rate, vesting_schedule, delegators, inactive) ⇒ BidInfo
constructor
A new instance of BidInfo.
Constructor Details
#initialize(bonding_purse, staked_amount, delegation_rate, vesting_schedule, delegators, inactive) ⇒ BidInfo
Returns a new instance of BidInfo.
12 13 14 15 16 17 18 19 |
# File 'lib/entity/bid_info.rb', line 12 def initialize(bonding_purse, staked_amount, delegation_rate, vesting_schedule, delegators, inactive) @bonding_purse = bonding_purse @staked_amount = staked_amount @delegation_rate = delegation_rate @vesting_schedule = vesting_schedule @delegators = delegators @inactive = inactive end |
Instance Method Details
#get_bonding_purse ⇒ String
Returns bonding_purse.
22 23 24 |
# File 'lib/entity/bid_info.rb', line 22 def get_bonding_purse @bonding_purse end |
#get_delegation_rate ⇒ Integer
Returns delegation_rate.
32 33 34 |
# File 'lib/entity/bid_info.rb', line 32 def get_delegation_rate @delegation_rate end |
#get_delegators ⇒ Delegator
Returns delegators.
42 43 44 |
# File 'lib/entity/bid_info.rb', line 42 def get_delegators @delegators end |
#get_inactive ⇒ true, false
Returns inactive.
47 48 49 |
# File 'lib/entity/bid_info.rb', line 47 def get_inactive @inactive end |
#get_staked_amount ⇒ String
Returns staked_amount.
27 28 29 |
# File 'lib/entity/bid_info.rb', line 27 def get_staked_amount @staked_amount end |
#get_vesting_schedule ⇒ VestingSchedule
Returns vesting_schedule.
37 38 39 |
# File 'lib/entity/bid_info.rb', line 37 def get_vesting_schedule @vesting_schedule end |