Class: Kybus::Configuration::Autoconfigs::RESTClient
- Inherits:
-
Object
- Object
- Kybus::Configuration::Autoconfigs::RESTClient
show all
- Includes:
- Utils
- Defined in:
- lib/kybus/configs/autoconfigs/rest_client.rb
Class Method Summary
collapse
Instance Method Summary
collapse
Methods included from Utils
#array_wrap, #parse_type, #recursive_merge, #recursive_set, #split_env_string, #symbolize
Constructor Details
#initialize(config) ⇒ RESTClient
14
15
16
17
|
# File 'lib/kybus/configs/autoconfigs/rest_client.rb', line 14
def initialize(config)
@config = config
@connection = Kybus::Client::RESTClient.new(symbolize(config))
end
|
Class Method Details
.from_config(config) ⇒ Object
9
10
11
12
|
# File 'lib/kybus/configs/autoconfigs/rest_client.rb', line 9
def self.from_config(config)
require 'kybus/client'
new(config)
end
|
Instance Method Details
#raw ⇒ Object
19
20
21
|
# File 'lib/kybus/configs/autoconfigs/rest_client.rb', line 19
def raw
@connection
end
|