Class: Nvoi::Configuration::Providers::Scaleway
- Inherits:
-
Object
- Object
- Nvoi::Configuration::Providers::Scaleway
- Defined in:
- lib/nvoi/configuration/providers.rb
Overview
Scaleway contains Scaleway-specific configuration
Instance Attribute Summary collapse
-
#architecture ⇒ Object
Returns the value of attribute architecture.
-
#project_id ⇒ Object
Returns the value of attribute project_id.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#server_type ⇒ Object
Returns the value of attribute server_type.
-
#zone ⇒ Object
Returns the value of attribute zone.
Instance Method Summary collapse
-
#initialize(data = nil) ⇒ Scaleway
constructor
A new instance of Scaleway.
Constructor Details
#initialize(data = nil) ⇒ Scaleway
Returns a new instance of Scaleway.
70 71 72 73 74 75 76 77 |
# File 'lib/nvoi/configuration/providers.rb', line 70 def initialize(data = nil) data ||= {} @secret_key = data["secret_key"] @project_id = data["project_id"] @zone = data["zone"] || "fr-par-1" @server_type = data["server_type"] @architecture = data["architecture"] end |
Instance Attribute Details
#architecture ⇒ Object
Returns the value of attribute architecture.
68 69 70 |
# File 'lib/nvoi/configuration/providers.rb', line 68 def architecture @architecture end |
#project_id ⇒ Object
Returns the value of attribute project_id.
68 69 70 |
# File 'lib/nvoi/configuration/providers.rb', line 68 def project_id @project_id end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
68 69 70 |
# File 'lib/nvoi/configuration/providers.rb', line 68 def secret_key @secret_key end |
#server_type ⇒ Object
Returns the value of attribute server_type.
68 69 70 |
# File 'lib/nvoi/configuration/providers.rb', line 68 def server_type @server_type end |
#zone ⇒ Object
Returns the value of attribute zone.
68 69 70 |
# File 'lib/nvoi/configuration/providers.rb', line 68 def zone @zone end |