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.
37 38 39 40 41 42 43 |
# File 'lib/stoplight/error.rb', line 37 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.
21 22 23 |
# File 'lib/stoplight/error.rb', line 21 def cool_off_time @cool_off_time end |
#light_name ⇒ Object
Returns the value of attribute light_name.
17 18 19 |
# File 'lib/stoplight/error.rb', line 17 def light_name @light_name end |
#retry_after ⇒ Object
Returns the value of attribute retry_after.
26 27 28 |
# File 'lib/stoplight/error.rb', line 26 def retry_after @retry_after end |