Sha256: 7f780f762b612ca811ef75865a18ee6c8d264be445f0789ed0434f143e20a712
Contents?: true
Size: 688 Bytes
Versions: 1
Compression:
Stored size: 688 Bytes
Contents
require 'rd_insightly/version' require 'rd_insightly/lead' require 'rd_insightly/exception/lead_exception' require 'rd_insightly/exception/api_token_exception' require 'rd_insightly/auth' require 'rd_insightly/insightly/api_insightly' require 'rd_insightly/insightly/serializer_insightly' require 'rest-client' require 'base64' require 'singleton' module RdInsightly BASE_URL = 'https://api.insight.ly/v2.1/' @auth = nil def self.create_authorization(api_token) @auth = Auth.create(api_token) end def self.authorized? return false if @auth.nil? @auth.authorized? end def self.api_token @auth.api_token end def self.logout @auth.logout end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rd_insightly-0.2.0 | lib/rd_insightly.rb |