class Crowdkit::Client

The top level client, all API access starts here. It’s unlike the other subclasses of API as it overrides the initialize method and sets us up for chaining.

Attributes

config[R]
last_response[RW]

Public Class Methods

new(overrides, &block) click to toggle source

Accepts a hash of configuration overrides or a Config object

# File lib/crowdkit/client.rb, line 10
def initialize(overrides, &block)
  @config = overrides.is_a?(Config) ? overrides : Config.new(overrides, &block)
  @client = self
  @stored_params = {}
end

Public Instance Methods

root() click to toggle source
# File lib/crowdkit/client.rb, line 16
def root
  do_get("")
end