Class: BeamUp::Providers::Netlify::Config
- Inherits:
-
Object
- Object
- BeamUp::Providers::Netlify::Config
- Defined in:
- lib/beam_up/providers/netlify.rb
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#project_id ⇒ Object
Returns the value of attribute project_id.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
14 15 16 |
# File 'lib/beam_up/providers/netlify.rb', line 14 def api_token @api_token end |
#project_id ⇒ Object
Returns the value of attribute project_id.
14 15 16 |
# File 'lib/beam_up/providers/netlify.rb', line 14 def project_id @project_id end |
Class Method Details
.config_keys ⇒ Object
12 |
# File 'lib/beam_up/providers/netlify.rb', line 12 def self.config_keys = %w[api_token project_id] |
Instance Method Details
#validate! ⇒ Object
22 23 24 |
# File 'lib/beam_up/providers/netlify.rb', line 22 def validate! raise ConfigurationError, "API token must be set" unless api_token end |
#with(options) ⇒ Object
16 17 18 19 20 |
# File 'lib/beam_up/providers/netlify.rb', line 16 def with() self.api_token = [:api_token] self.project_id = [:project_id] self end |