Module: Cloudflare::D1
- Defined in:
- lib/cloudflare/d1.rb,
lib/cloudflare/d1/model.rb,
lib/cloudflare/d1/client.rb,
lib/cloudflare/d1/railtie.rb,
lib/cloudflare/d1/version.rb
Defined Under Namespace
Classes: Client, Error, Model, Railtie
Constant Summary collapse
- VERSION =
"0.1.0"
Class Attribute Summary collapse
-
.account_id ⇒ Object
Returns the value of attribute account_id.
-
.api_token ⇒ Object
Returns the value of attribute api_token.
Class Method Summary collapse
-
.configure {|_self| ... } ⇒ Object
Configure global D1 settings.
Class Attribute Details
.account_id ⇒ Object
Returns the value of attribute account_id.
12 13 14 |
# File 'lib/cloudflare/d1.rb', line 12 def account_id @account_id end |
.api_token ⇒ Object
Returns the value of attribute api_token.
12 13 14 |
# File 'lib/cloudflare/d1.rb', line 12 def api_token @api_token end |
Class Method Details
.configure {|_self| ... } ⇒ Object
Configure global D1 settings
Example:
Cloudflare::D1.configure do |config|
config.account_id = ENV['CLOUDFLARE_ACCOUNT_ID']
config.api_token = ENV['CLOUDFLARE_API_TOKEN']
end
21 22 23 |
# File 'lib/cloudflare/d1.rb', line 21 def configure yield self end |