Module: Celery::Config
- Included in:
- Celery
- Defined in:
- lib/celery/config.rb
Instance Method Summary collapse
- #access_token ⇒ Object
- #access_token=(access_token) ⇒ Object
- #endpoint ⇒ Object
- #parameterize_options(args = {}) ⇒ Object
Instance Method Details
#access_token ⇒ Object
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 |
#endpoint ⇒ Object
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 (args={}) args.merge!(access_token: access_token) uri = Addressable::URI.new uri.query_values = args uri.query end |