Class: Bazil::Client::Options

Inherits:
Object
  • Object
show all
Defined in:
lib/bazil/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options)
  if options.kind_of? String
    options = {CA_FILE_KEY => options}
  end
  options = symbolize_keys(options)

  load_url_option(options)
  load_ca_file_option(options)
  load_ssl_version_option(options)
  load_verify_option(options)
  load_api_keys_option(options)
end

Instance Attribute Details

#api_keyObject (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_rootObject (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_fileObject (readonly)

Returns the value of attribute ca_file.



16
17
18
# File 'lib/bazil/client.rb', line 16

def ca_file
  @ca_file
end

#hostObject (readonly)

Returns the value of attribute host.



16
17
18
# File 'lib/bazil/client.rb', line 16

def host
  @host
end

#portObject (readonly)

Returns the value of attribute port.



16
17
18
# File 'lib/bazil/client.rb', line 16

def port
  @port
end

#schemeObject (readonly)

Returns the value of attribute scheme.



16
17
18
# File 'lib/bazil/client.rb', line 16

def scheme
  @scheme
end

#secret_keyObject (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_versionObject (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_modeObject (readonly)

Returns the value of attribute verify_mode.



16
17
18
# File 'lib/bazil/client.rb', line 16

def verify_mode
  @verify_mode
end