Class: Oopsie::Configuration
- Inherits:
-
Object
- Object
- Oopsie::Configuration
- Defined in:
- lib/oopsie/configuration.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
-
#endpoint ⇒ Object
Returns the value of attribute endpoint.
-
#on_error ⇒ Object
Returns the value of attribute on_error.
Instance Method Summary collapse
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
7 8 9 |
# File 'lib/oopsie/configuration.rb', line 7 def api_key @api_key end |
#endpoint ⇒ Object
Returns the value of attribute endpoint.
8 9 10 |
# File 'lib/oopsie/configuration.rb', line 8 def endpoint @endpoint end |
#on_error ⇒ Object
Returns the value of attribute on_error.
7 8 9 |
# File 'lib/oopsie/configuration.rb', line 7 def on_error @on_error end |
Instance Method Details
#validate! ⇒ Object
14 15 16 17 |
# File 'lib/oopsie/configuration.rb', line 14 def validate! raise ConfigurationError, 'api_key is required' if api_key.nil? || api_key.empty? raise ConfigurationError, 'endpoint is required' if endpoint.nil? || endpoint.empty? end |