module Setka::Workflow

Constants

API_VERSION

Current default version of API

BASE_ENDPOINT
ConfigurationError

This error is thrown when your client has not been configured

Error

Basic Workflow error

InternalServerError

This error is thrown when Setka Workflow responds with 500

InvalidAccessToken

This error is thrown when access token is invalid

VERSION
WrongParamError

This error is thrown when format of the param is wrong

Public Class Methods

client() click to toggle source

Gets current client

# File lib/setka/workflow.rb, line 47
def self.client
  @client ||= Setka::Workflow::Client.new
end
configure(&block) click to toggle source

Workflow client configuration in the global manner

# File lib/setka/workflow.rb, line 52
def self.configure(&block)
  reset!
  client.configure(&block)
end
logger() click to toggle source
# File lib/setka/workflow.rb, line 57
def self.logger
  @logger ||= Logger.new(STDOUT)
end
logger=(logger) click to toggle source

Sets custom logger

# File lib/setka/workflow.rb, line 62
def self.logger=(logger)
  @logger = logger
end
reset!() click to toggle source

Clears current client

# File lib/setka/workflow.rb, line 42
def self.reset!
  @client = nil
end