Class: QcloudRuby::Configuration
- Inherits:
-
Object
- Object
- QcloudRuby::Configuration
- Defined in:
- lib/qcloud_ruby/configuration.rb
Instance Attribute Summary collapse
-
#base_host ⇒ Object
Returns the value of attribute base_host.
-
#path ⇒ Object
Returns the value of attribute path.
-
#secret_id ⇒ Object
Returns the value of attribute secret_id.
-
#secret_key ⇒ Object
Returns the value of attribute secret_key.
-
#ssl ⇒ Object
(also: #ssl?)
Returns the value of attribute ssl.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
- #protocol ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
8 9 10 11 12 |
# File 'lib/qcloud_ruby/configuration.rb', line 8 def initialize @base_host = 'api.qcloud.com' @path = '/v2/index.php' @ssl = true end |
Instance Attribute Details
#base_host ⇒ Object
Returns the value of attribute base_host.
6 7 8 |
# File 'lib/qcloud_ruby/configuration.rb', line 6 def base_host @base_host end |
#path ⇒ Object
Returns the value of attribute path.
6 7 8 |
# File 'lib/qcloud_ruby/configuration.rb', line 6 def path @path end |
#secret_id ⇒ Object
Returns the value of attribute secret_id.
6 7 8 |
# File 'lib/qcloud_ruby/configuration.rb', line 6 def secret_id @secret_id end |
#secret_key ⇒ Object
Returns the value of attribute secret_key.
6 7 8 |
# File 'lib/qcloud_ruby/configuration.rb', line 6 def secret_key @secret_key end |
#ssl ⇒ Object Also known as: ssl?
Returns the value of attribute ssl.
6 7 8 |
# File 'lib/qcloud_ruby/configuration.rb', line 6 def ssl @ssl end |
Instance Method Details
#protocol ⇒ Object
14 15 16 |
# File 'lib/qcloud_ruby/configuration.rb', line 14 def protocol ssl? ? 'https' : 'http' end |