Class: BeamUp::Providers::SealStatic::Config
- Inherits:
-
Object
- Object
- BeamUp::Providers::SealStatic::Config
- Defined in:
- lib/beam_up/providers/seal_static.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
17 18 19 |
# File 'lib/beam_up/providers/seal_static.rb', line 17 def api_key @api_key end |
Class Method Details
.config_keys ⇒ Object
15 |
# File 'lib/beam_up/providers/seal_static.rb', line 15 def self.config_keys = %w[api_key] |
Instance Method Details
#validate! ⇒ Object
24 25 26 |
# File 'lib/beam_up/providers/seal_static.rb', line 24 def validate! raise ConfigurationError, "API key must be set" if api_key.nil? || api_key.empty? end |
#with(options) ⇒ Object
19 20 21 22 |
# File 'lib/beam_up/providers/seal_static.rb', line 19 def with() self.api_key = [:api_key] self end |