Module: Ragoon
- Defined in:
- lib/ragoon.rb,
lib/ragoon/version.rb
Defined Under Namespace
Modules: XML
Classes: Client, Services
Constant Summary
collapse
- VERSION =
'1.0.0'
- @@secret_options =
{}
Class Method Summary
collapse
Class Method Details
.default_options ⇒ Object
16
17
18
19
20
21
22
23
|
# File 'lib/ragoon.rb', line 16
def self.default_options
{
endpoint: ENV['GAROON_ENDPOINT'] || secret_options[:garoon_endpoint] || raise_option_error('endpoint'),
username: ENV['GAROON_USERNAME'] || secret_options[:garoon_username] || raise_option_error('username'),
password: ENV['GAROON_PASSWORD'] || secret_options[:garoon_password] || raise_option_error('password'),
version: ENV['GAROON_VERSION'] || secret_options[:garoon_version] || 4
}
end
|
.raise_option_error(type) ⇒ Object
25
26
27
|
# File 'lib/ragoon.rb', line 25
def self.raise_option_error(type)
raise "must specify garoon_#{type} by ENV or `./.secret_options`."
end
|