Module: BunnyApp
- Defined in:
- lib/bunny_app.rb,
lib/bunny_app/client.rb,
lib/bunny_app/errors.rb,
lib/bunny_app/tenant.rb,
lib/bunny_app/version.rb,
lib/bunny_app/webhook.rb,
lib/bunny_app/platform.rb,
lib/bunny_app/subscription.rb,
lib/bunny_app/feature_usage.rb,
lib/bunny_app/portal_session.rb,
lib/bunny_app/tenant_metrics.rb,
lib/generators/bunny_app/install_generator.rb
Defined Under Namespace
Classes: AuthorizationError, Client, FeatureUsage, InstallGenerator, Platform, PortalSession, ResponseError, Subscription, Tenant, TenantMetrics, Webhook
Constant Summary collapse
- VERSION =
'2.2.1'
Class Attribute Summary collapse
-
.access_token ⇒ Object
Returns the value of attribute access_token.
- .base_uri ⇒ Object
-
.client_id ⇒ Object
Returns the value of attribute client_id.
-
.client_secret ⇒ Object
Returns the value of attribute client_secret.
-
.retryable ⇒ Object
Returns the value of attribute retryable.
-
.scope ⇒ Object
Returns the value of attribute scope.
Class Method Summary collapse
- .config {|_self| ... } ⇒ Object
- .query(query, variables) ⇒ Object
- .query_async(query, variables) ⇒ Object
Class Attribute Details
.access_token ⇒ Object
Returns the value of attribute access_token.
14 15 16 |
# File 'lib/bunny_app.rb', line 14 def access_token @access_token end |
.base_uri ⇒ Object
21 22 23 |
# File 'lib/bunny_app.rb', line 21 def base_uri @base_uri || 'https://api.bunny.com' end |
.client_id ⇒ Object
Returns the value of attribute client_id.
14 15 16 |
# File 'lib/bunny_app.rb', line 14 def client_id @client_id end |
.client_secret ⇒ Object
Returns the value of attribute client_secret.
14 15 16 |
# File 'lib/bunny_app.rb', line 14 def client_secret @client_secret end |
.retryable ⇒ Object
Returns the value of attribute retryable.
14 15 16 |
# File 'lib/bunny_app.rb', line 14 def retryable @retryable end |
.scope ⇒ Object
Returns the value of attribute scope.
14 15 16 |
# File 'lib/bunny_app.rb', line 14 def scope @scope end |
Class Method Details
.config {|_self| ... } ⇒ Object
17 18 19 |
# File 'lib/bunny_app.rb', line 17 def config yield self end |
.query(query, variables) ⇒ Object
25 26 27 |
# File 'lib/bunny_app.rb', line 25 def query(query, variables) Client.new.query(query, variables) end |
.query_async(query, variables) ⇒ Object
29 30 31 |
# File 'lib/bunny_app.rb', line 29 def query_async(query, variables) Client.new.query_async(query, variables) end |