Class: Nvoi::Configuration::Providers::Scaleway

Inherits:
Object
  • Object
show all
Defined in:
lib/nvoi/configuration/providers.rb

Overview

Scaleway contains Scaleway-specific configuration

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#architectureObject

Returns the value of attribute architecture.



68
69
70
# File 'lib/nvoi/configuration/providers.rb', line 68

def architecture
  @architecture
end

#project_idObject

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_keyObject

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_typeObject

Returns the value of attribute server_type.



68
69
70
# File 'lib/nvoi/configuration/providers.rb', line 68

def server_type
  @server_type
end

#zoneObject

Returns the value of attribute zone.



68
69
70
# File 'lib/nvoi/configuration/providers.rb', line 68

def zone
  @zone
end