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.



7
8
9
10
11
# File 'lib/rollie/status.rb', line 7

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.



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

def count
  @count
end

#time_remainingObject

Returns the value of attribute time_remaining.



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

def time_remaining
  @time_remaining
end

Instance Method Details

#exceeded?Boolean

Returns:

  • (Boolean)


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

def exceeded?
  @exceeded
end