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.
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
#count ⇒ Object
Returns the value of attribute count.
5 6 7 |
# File 'lib/rollie/status.rb', line 5 def count @count end |
#time_remaining ⇒ Object
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
13 14 15 |
# File 'lib/rollie/status.rb', line 13 def exceeded? @exceeded end |