Class: Casper::Entity::BidInfo

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

Overview

BidInfo

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of BidInfo.

Parameters:

  • bonding_purse (String)
  • staked_amount (String)
  • delegation_rate (Integer)
  • vesting_schedule (VestingSchedule)
  • delegators (Array<Delegator>)
  • inactive (Boolean)


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_purseString

Returns bonding_purse.

Returns:

  • (String)

    bonding_purse



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

def get_bonding_purse
  @bonding_purse
end

#get_delegation_rateInteger

Returns delegation_rate.

Returns:

  • (Integer)

    delegation_rate



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

def get_delegation_rate
  @delegation_rate
end

#get_delegatorsDelegator

Returns delegators.

Returns:



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

def get_delegators
  @delegators
end

#get_inactivetrue, false

Returns inactive.

Returns:

  • (true, false)

    inactive



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

def get_inactive
  @inactive
end

#get_staked_amountString

Returns staked_amount.

Returns:

  • (String)

    staked_amount



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

def get_staked_amount
  @staked_amount
end

#get_vesting_scheduleVestingSchedule

Returns vesting_schedule.

Returns:



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

def get_vesting_schedule
  @vesting_schedule
end