module Poptart

Constants

VERSION

Public Class Methods

api_token() click to toggle source
# File lib/poptart.rb, line 6
def self.api_token
  @token
end
api_token=(token) click to toggle source
# File lib/poptart.rb, line 2
def self.api_token=(token)
  @token = token
end
authorize(service_user_id:, user_token:) click to toggle source
# File lib/poptart.rb, line 26
def self.authorize(service_user_id:, user_token:)
  @service_user_id = service_user_id
  @user_token = user_token
end
reset_authorization() click to toggle source
# File lib/poptart.rb, line 31
def self.reset_authorization
  @service_user_id = nil
  @user_token = nil
end
service_user_id() click to toggle source
# File lib/poptart.rb, line 18
def self.service_user_id
  @service_user_id
end
url() click to toggle source
# File lib/poptart.rb, line 14
def self.url
  @url || 'http://localhost:3000'
end
url=(url) click to toggle source
# File lib/poptart.rb, line 10
def self.url=(url)
  @url = url
end
user_token() click to toggle source
# File lib/poptart.rb, line 22
def self.user_token
  @user_token
end