module RSqoot

Constants

AUTHENTICATION_METHODS
VERSION

Attributes

authentication_method[RW]
base_api_url[RW]
private_api_key[RW]
public_api_key[RW]
read_timeout[RW]

Public Class Methods

configure() { |self| ... } click to toggle source

Configure default credentials easily

@yield [Sqoot]

# File lib/rsqoot.rb, line 11
def configure
  load_defaults
  yield self
  raise "Authentication method must be :header or :parameter ." if !AUTHENTICATION_METHODS.include? self.authentication_method
  true
end
load_defaults() click to toggle source
# File lib/rsqoot.rb, line 18
def load_defaults
  self.base_api_url ||= "https://api.sqoot.com"
  self.authentication_method = :header
  self.read_timeout = 60
end