Class: Pause::PeriodCheck

Inherits:
Struct
  • Object
show all
Defined in:
lib/pause.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#block_ttlObject

Returns the value of attribute block_ttl

Returns:

  • (Object)

    the current value of block_ttl



12
13
14
# File 'lib/pause.rb', line 12

def block_ttl
  @block_ttl
end

#max_allowedObject

Returns the value of attribute max_allowed

Returns:

  • (Object)

    the current value of max_allowed



12
13
14
# File 'lib/pause.rb', line 12

def max_allowed
  @max_allowed
end

#period_secondsObject

Returns the value of attribute period_seconds

Returns:

  • (Object)

    the current value of period_seconds



12
13
14
# File 'lib/pause.rb', line 12

def period_seconds
  @period_seconds
end

Instance Method Details

#<=>(other) ⇒ Object



13
14
15
# File 'lib/pause.rb', line 13

def <=>(other)
  self.period_seconds <=> other.period_seconds
end