Class: Rollie::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/rollie/status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(time_remaining, count, exceeded) ⇒ Status

Returns a new instance of Status.



5
6
7
8
9
# File 'lib/rollie/status.rb', line 5

def initialize(time_remaining, count, exceeded)
  @time_remaining = time_remaining
  @count = count
  @exceeded = exceeded
end

Instance Attribute Details

#countObject

Returns the value of attribute count.



3
4
5
# File 'lib/rollie/status.rb', line 3

def count
  @count
end

#time_remainingObject

Returns the value of attribute time_remaining.



3
4
5
# File 'lib/rollie/status.rb', line 3

def time_remaining
  @time_remaining
end

Instance Method Details

#exceeded?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/rollie/status.rb', line 11

def exceeded?
  @exceeded
end