Class: Cloudflare::Configuration
- Inherits:
-
Object
- Object
- Cloudflare::Configuration
- Defined in:
- lib/cloudflare/configuration.rb
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#base_url ⇒ Object
Returns the value of attribute base_url.
-
#timeout ⇒ Object
Returns the value of attribute timeout.
-
#user_agent ⇒ Object
Returns the value of attribute user_agent.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
5 6 7 8 9 |
# File 'lib/cloudflare/configuration.rb', line 5 def initialize @base_url = "https://api.cloudflare.com/client/v4" @timeout = 30 @user_agent = "cloudflare-ruby/#{VERSION}" end |
Instance Attribute Details
#account_id ⇒ Object
Returns the value of attribute account_id.
3 4 5 |
# File 'lib/cloudflare/configuration.rb', line 3 def account_id @account_id end |
#api_token ⇒ Object
Returns the value of attribute api_token.
3 4 5 |
# File 'lib/cloudflare/configuration.rb', line 3 def api_token @api_token end |
#base_url ⇒ Object
Returns the value of attribute base_url.
3 4 5 |
# File 'lib/cloudflare/configuration.rb', line 3 def base_url @base_url end |
#timeout ⇒ Object
Returns the value of attribute timeout.
3 4 5 |
# File 'lib/cloudflare/configuration.rb', line 3 def timeout @timeout end |
#user_agent ⇒ Object
Returns the value of attribute user_agent.
3 4 5 |
# File 'lib/cloudflare/configuration.rb', line 3 def user_agent @user_agent end |