Class: BeamUp::Providers::DigitalOceanSpaces::Config
- Inherits:
-
Object
- Object
- BeamUp::Providers::DigitalOceanSpaces::Config
- Defined in:
- lib/beam_up/providers/digital_ocean_spaces.rb
Instance Attribute Summary collapse
-
#access_key ⇒ Object
Returns the value of attribute access_key.
-
#region ⇒ Object
Returns the value of attribute region.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#space_name ⇒ Object
Returns the value of attribute space_name.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#access_key ⇒ Object
Returns the value of attribute access_key.
11 12 13 |
# File 'lib/beam_up/providers/digital_ocean_spaces.rb', line 11 def access_key @access_key end |
#region ⇒ Object
Returns the value of attribute region.
11 12 13 |
# File 'lib/beam_up/providers/digital_ocean_spaces.rb', line 11 def region @region end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
11 12 13 |
# File 'lib/beam_up/providers/digital_ocean_spaces.rb', line 11 def secret_key @secret_key end |
#space_name ⇒ Object
Returns the value of attribute space_name.
11 12 13 |
# File 'lib/beam_up/providers/digital_ocean_spaces.rb', line 11 def space_name @space_name end |
Class Method Details
.config_keys ⇒ Object
9 |
# File 'lib/beam_up/providers/digital_ocean_spaces.rb', line 9 def self.config_keys = %w[access_key secret_key region space_name] |
Instance Method Details
#validate! ⇒ Object
21 22 23 24 |
# File 'lib/beam_up/providers/digital_ocean_spaces.rb', line 21 def validate! raise ConfigurationError, "Access key must be set" unless access_key raise ConfigurationError, "Secret key must be set" unless secret_key end |
#with(options) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/beam_up/providers/digital_ocean_spaces.rb', line 13 def with() self.access_key = [:access_key] self.secret_key = [:secret_key] self.region = [:region] self.space_name = [:space_name] self end |