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

Class Method Summary collapse

Class Attribute Details

.access_tokenObject

Returns the value of attribute access_token.



14
15
16
# File 'lib/bunny_app.rb', line 14

def access_token
  @access_token
end

.base_uriObject



21
22
23
# File 'lib/bunny_app.rb', line 21

def base_uri
  @base_uri || 'https://api.bunny.com'
end

.client_idObject

Returns the value of attribute client_id.



14
15
16
# File 'lib/bunny_app.rb', line 14

def client_id
  @client_id
end

.client_secretObject

Returns the value of attribute client_secret.



14
15
16
# File 'lib/bunny_app.rb', line 14

def client_secret
  @client_secret
end

.retryableObject

Returns the value of attribute retryable.



14
15
16
# File 'lib/bunny_app.rb', line 14

def retryable
  @retryable
end

.scopeObject

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

Yields:

  • (_self)

Yield Parameters:

  • _self (BunnyApp)

    the object that the method was called on



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