Exception: Stoplight::Error::RedLight
- Defined in:
- lib/stoplight/error.rb
Instance Attribute Summary collapse
-
#cool_off_time ⇒ Object
Returns the value of attribute cool_off_time.
-
#light_name ⇒ Object
Returns the value of attribute light_name.
-
#retry_after ⇒ Object
Returns the value of attribute retry_after.
Instance Method Summary collapse
-
#initialize(light_name, cool_off_time:, retry_after:) ⇒ Stoplight::Error::RedLight
constructor
Initializes a new RedLight error.
Constructor Details
#initialize(light_name, cool_off_time:, retry_after:) ⇒ Stoplight::Error::RedLight
Initializes a new RedLight error.
40 41 42 43 44 45 46 |
# File 'lib/stoplight/error.rb', line 40 def initialize(light_name, cool_off_time:, retry_after:) @light_name = light_name @cool_off_time = cool_off_time @retry_after = retry_after super(light_name) end |
Instance Attribute Details
#cool_off_time ⇒ Object
Returns the value of attribute cool_off_time.
23 24 25 |
# File 'lib/stoplight/error.rb', line 23 def cool_off_time @cool_off_time end |
#light_name ⇒ Object
Returns the value of attribute light_name.
18 19 20 |
# File 'lib/stoplight/error.rb', line 18 def light_name @light_name end |
#retry_after ⇒ Object
Returns the value of attribute retry_after.
29 30 31 |
# File 'lib/stoplight/error.rb', line 29 def retry_after @retry_after end |