class Callback::Client

Attributes

access_token[RW]
base_path[RW]

Public Class Methods

new(options={}) click to toggle source
# File lib/callback/client.rb, line 5
def initialize(options={})
  @access_token = initialize_attribute :access_token, options
  @base_path = initialize_attribute :base_path, options
end

Public Instance Methods

jobs() click to toggle source
# File lib/callback/client.rb, line 10
def jobs
  @jobs ||= API::Jobs.new(access_token: access_token, base_path: base_path)
end

Private Instance Methods

initialize_attribute(key, options) click to toggle source
# File lib/callback/client.rb, line 16
def initialize_attribute(key, options)
  options.fetch(key) { Callback.configuration.send(key) }
end