Class: Nvoi::Configuration::Providers::Hetzner
- Inherits:
-
Object
- Object
- Nvoi::Configuration::Providers::Hetzner
- Defined in:
- lib/nvoi/configuration/providers.rb
Overview
Hetzner contains Hetzner-specific configuration
Instance Attribute Summary collapse
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#architecture ⇒ Object
Returns the value of attribute architecture.
-
#server_location ⇒ Object
Returns the value of attribute server_location.
-
#server_type ⇒ Object
Returns the value of attribute server_type.
Instance Method Summary collapse
-
#initialize(data = nil) ⇒ Hetzner
constructor
A new instance of Hetzner.
Constructor Details
#initialize(data = nil) ⇒ Hetzner
Returns a new instance of Hetzner.
43 44 45 46 47 48 49 |
# File 'lib/nvoi/configuration/providers.rb', line 43 def initialize(data = nil) data ||= {} @api_token = data["api_token"] @server_type = data["server_type"] @server_location = data["server_location"] @architecture = data["architecture"] end |
Instance Attribute Details
#api_token ⇒ Object
Returns the value of attribute api_token.
41 42 43 |
# File 'lib/nvoi/configuration/providers.rb', line 41 def api_token @api_token end |
#architecture ⇒ Object
Returns the value of attribute architecture.
41 42 43 |
# File 'lib/nvoi/configuration/providers.rb', line 41 def architecture @architecture end |
#server_location ⇒ Object
Returns the value of attribute server_location.
41 42 43 |
# File 'lib/nvoi/configuration/providers.rb', line 41 def server_location @server_location end |
#server_type ⇒ Object
Returns the value of attribute server_type.
41 42 43 |
# File 'lib/nvoi/configuration/providers.rb', line 41 def server_type @server_type end |