Class: Bazil::Client::Options
- Inherits:
-
Object
- Object
- Bazil::Client::Options
- Defined in:
- lib/bazil/client.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#api_root ⇒ Object
readonly
Returns the value of attribute api_root.
-
#ca_file ⇒ Object
readonly
Returns the value of attribute ca_file.
-
#host ⇒ Object
readonly
Returns the value of attribute host.
-
#port ⇒ Object
readonly
Returns the value of attribute port.
-
#scheme ⇒ Object
readonly
Returns the value of attribute scheme.
-
#secret_key ⇒ Object
readonly
Returns the value of attribute secret_key.
-
#ssl_version ⇒ Object
readonly
Returns the value of attribute ssl_version.
-
#verify_mode ⇒ Object
readonly
Returns the value of attribute verify_mode.
Instance Method Summary collapse
-
#initialize(options) ⇒ Options
constructor
A new instance of Options.
Constructor Details
#initialize(options) ⇒ Options
Returns a new instance of Options.
18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'lib/bazil/client.rb', line 18 def initialize() if .kind_of? String = {CA_FILE_KEY => } end = symbolize_keys() load_url_option() load_ca_file_option() load_ssl_version_option() load_verify_option() load_api_keys_option() end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
16 17 18 |
# File 'lib/bazil/client.rb', line 16 def api_key @api_key end |
#api_root ⇒ Object (readonly)
Returns the value of attribute api_root.
16 17 18 |
# File 'lib/bazil/client.rb', line 16 def api_root @api_root end |
#ca_file ⇒ Object (readonly)
Returns the value of attribute ca_file.
16 17 18 |
# File 'lib/bazil/client.rb', line 16 def ca_file @ca_file end |
#host ⇒ Object (readonly)
Returns the value of attribute host.
16 17 18 |
# File 'lib/bazil/client.rb', line 16 def host @host end |
#port ⇒ Object (readonly)
Returns the value of attribute port.
16 17 18 |
# File 'lib/bazil/client.rb', line 16 def port @port end |
#scheme ⇒ Object (readonly)
Returns the value of attribute scheme.
16 17 18 |
# File 'lib/bazil/client.rb', line 16 def scheme @scheme end |
#secret_key ⇒ Object (readonly)
Returns the value of attribute secret_key.
16 17 18 |
# File 'lib/bazil/client.rb', line 16 def secret_key @secret_key end |
#ssl_version ⇒ Object (readonly)
Returns the value of attribute ssl_version.
16 17 18 |
# File 'lib/bazil/client.rb', line 16 def ssl_version @ssl_version end |
#verify_mode ⇒ Object (readonly)
Returns the value of attribute verify_mode.
16 17 18 |
# File 'lib/bazil/client.rb', line 16 def verify_mode @verify_mode end |