Sha256: a145bc1443fc4958674f16d4b5f0a96cd73d89b82a8cb877db256a5c62c5e41a

Contents?: true

Size: 660 Bytes

Versions: 7

Compression:

Stored size: 660 Bytes

Contents

require 'bunny_app/version'
require 'bunny_app/errors'
require 'bunny_app/client'
require 'bunny_app/usage'
require 'bunny_app/platform'
require 'bunny_app/tenant'
require 'bunny_app/subscription'
require 'bunny_app/webhook'

module BunnyApp
  class << self
    attr_accessor :client_id, :client_secret, :scope, :access_token, :retryable
    attr_writer :base_uri

    def config
      yield self
    end

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

    def query(query, variables)
      Client.new.query(query, variables)
    end

    def query_async(query, variables)
      Client.new.query_async(query, variables)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
bunny_app-1.25.0 lib/bunny_app.rb
bunny_app-1.24.0 lib/bunny_app.rb
bunny_app-1.23.0 lib/bunny_app.rb
bunny_app-1.22.0 lib/bunny_app.rb
bunny_app-1.20.0 lib/bunny_app.rb
bunny_app-1.19.0 lib/bunny_app.rb
bunny_app-1.18.0 lib/bunny_app.rb