Class: Rollie::Status
- Inherits:
-
Object
- Object
- Rollie::Status
- Defined in:
- lib/rollie/status.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
Returns the value of attribute count.
-
#time_remaining ⇒ Object
Returns the value of attribute time_remaining.
Instance Method Summary collapse
- #exceeded? ⇒ Boolean
-
#initialize(time_remaining, count, exceeded) ⇒ Status
constructor
A new instance of Status.
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
#count ⇒ Object
Returns the value of attribute count.
3 4 5 |
# File 'lib/rollie/status.rb', line 3 def count @count end |
#time_remaining ⇒ Object
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
11 12 13 |
# File 'lib/rollie/status.rb', line 11 def exceeded? @exceeded end |