class Selligent::Client

The actual Selligent client

Attributes

config[R]

Public Class Methods

new(options = {}) click to toggle source
# File lib/selligent/client.rb, line 40
def initialize(options = {})
  Selligent::Middlewares::Authorization.setup!
  @config = Selligent::Configuration.new(options)
end

Public Instance Methods

base_url() click to toggle source
# File lib/selligent/client.rb, line 53
def base_url
  "#{root_url}/organizations/#{config.organization}"
end
configure() { |config| ... } click to toggle source
# File lib/selligent/client.rb, line 45
def configure
  yield config
end
root_url() click to toggle source
# File lib/selligent/client.rb, line 49
def root_url
  '/Portal/Api'
end