Class: Kozo::Providers::HCloud::Provider

Inherits:
Kozo::Provider show all
Defined in:
lib/kozo/providers/hcloud/provider.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key.



9
10
11
# File 'lib/kozo/providers/hcloud/provider.rb', line 9

def key
  @key
end

Instance Method Details

#==(other) ⇒ Object



17
18
19
# File 'lib/kozo/providers/hcloud/provider.rb', line 17

def ==(other)
  key == other.key
end

#setupObject



13
14
15
# File 'lib/kozo/providers/hcloud/provider.rb', line 13

def setup
  ::HCloud::Client.connection = ::HCloud::Client.new(access_token: key, logger: Kozo.debug_logger)
end