Class: Nvoi::Configuration::Providers::Cloudflare
- Inherits:
-
Object
- Object
- Nvoi::Configuration::Providers::Cloudflare
- Defined in:
- lib/nvoi/configuration/providers.rb
Overview
Cloudflare contains Cloudflare-specific configuration
Instance Attribute Summary collapse
-
#account_id ⇒ Object
Returns the value of attribute account_id.
-
#api_token ⇒ Object
Returns the value of attribute api_token.
Instance Method Summary collapse
-
#initialize(data = nil) ⇒ Cloudflare
constructor
A new instance of Cloudflare.
Constructor Details
#initialize(data = nil) ⇒ Cloudflare
Returns a new instance of Cloudflare.
32 33 34 35 36 |
# File 'lib/nvoi/configuration/providers.rb', line 32 def initialize(data = nil) data ||= {} @api_token = data["api_token"] @account_id = data["account_id"] end |
Instance Attribute Details
#account_id ⇒ Object
Returns the value of attribute account_id.
30 31 32 |
# File 'lib/nvoi/configuration/providers.rb', line 30 def account_id @account_id end |
#api_token ⇒ Object
Returns the value of attribute api_token.
30 31 32 |
# File 'lib/nvoi/configuration/providers.rb', line 30 def api_token @api_token end |