Sha256: 52b2d2b6ef3458bf6583c3f6c17b2736ec73a1dac6f177b6127f0d0192fd6921

Contents?: true

Size: 967 Bytes

Versions: 1

Compression:

Stored size: 967 Bytes

Contents

require 'rapidash'
require 'rapidash/collection'
require 'bcx/version'

# ## Bcx
# Fully-fledged Ruby API wrapper for Basecamp Next
#
#  See the [README](https://github.com/paulspringett/bcx#readme) for usage
#
module Bcx
  autoload :Configuration, 'bcx/configuration'

  module Resources
    autoload :Todo, 'bcx/resources/todo'
    autoload :Todolist, 'bcx/resources/todolist'
    autoload :Project, 'bcx/resources/project'
    autoload :Person, 'bcx/resources/person'
    autoload :Access, 'bcx/resources/access'
  end

  module Client
    autoload :HTTP, 'bcx/client/http'
    autoload :OAuth, 'bcx/client/oauth'
  end

  class << self
    attr_accessor :configuration
  end

  # Expose configuration block
  def self.configure
    self.configuration ||= Configuration.new
    yield(configuration)
  end
end

# Use custom `Bcx::ResponseError` on top of Rapidash's error handling
require 'bcx/response_error'
Rapidash.response_exception_class = Bcx::ResponseError

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bcx-0.2.0 lib/bcx.rb