Class: Casper::Entity::BidInfo

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

Instance Method Summary collapse

Constructor Details

#initialize(bonding_purse, staked_amount, delegation_rate, vesting_schedule, delegators, inactive) ⇒ BidInfo



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

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_purseString



21
22
23
# File 'lib/entity/bid_info.rb', line 21

def get_bonding_purse
  @bonding_purse
end

#get_delegation_rateInteger



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

def get_delegation_rate
  @delegation_rate
end

#get_delegatorsDelegator



41
42
43
# File 'lib/entity/bid_info.rb', line 41

def get_delegators
  @delegators
end

#get_inactivetrue, false



46
47
48
# File 'lib/entity/bid_info.rb', line 46

def get_inactive
  @inactive
end

#get_staked_amountString



26
27
28
# File 'lib/entity/bid_info.rb', line 26

def get_staked_amount
  @staked_amount
end

#get_vesting_scheduleVestingSchedule



36
37
38
# File 'lib/entity/bid_info.rb', line 36

def get_vesting_schedule
  @vesting_schedule
end