class Unshuffle::Client

Attributes

token[R]

Public Class Methods

new(token) click to toggle source
# File lib/unshuffle/client.rb, line 8
def initialize(token)
  @token = token
end

Public Instance Methods

base_request_options() click to toggle source
# File lib/unshuffle/client.rb, line 22
def base_request_options
  {
    headers: {
      'Authorization' => ActionController::HttpAuthentication::Token.encode_credentials(token)
    }
  }
end
tasks() click to toggle source
# File lib/unshuffle/client.rb, line 18
def tasks
  get('tasks', as: Task)
end