Module: Celery::Config

Included in:
Celery
Defined in:
lib/celery/config.rb

Instance Method Summary collapse

Instance Method Details

#access_tokenObject



8
9
10
# File 'lib/celery/config.rb', line 8

def access_token
  @access_token
end

#access_token=(access_token) ⇒ Object



4
5
6
# File 'lib/celery/config.rb', line 4

def access_token=(access_token)
  @access_token = access_token
end

#endpointObject



12
13
14
# File 'lib/celery/config.rb', line 12

def endpoint
  @endpoint ||= "https://api.trycelery.com/v1/"
end

#parameterize_options(args = {}) ⇒ Object



16
17
18
19
20
21
# File 'lib/celery/config.rb', line 16

def parameterize_options(args={})
  args.merge!(access_token: access_token)
  uri              = Addressable::URI.new
  uri.query_values = args
  uri.query
end