Module: RdInsightly

Defined in:
lib/rd_insightly.rb,
lib/rd_insightly/auth.rb,
lib/rd_insightly/lead.rb,
lib/rd_insightly/version.rb,
lib/rd_insightly/insightly/api_insightly.rb,
lib/rd_insightly/exception/lead_exception.rb,
lib/rd_insightly/exception/api_token_exception.rb

Defined Under Namespace

Modules: ApiInsightly Classes: ApiTokenException, Auth, Lead, LeadException

Constant Summary collapse

VERSION =
'0.1.0'

Class Method Summary collapse

Class Method Details

.api_tokenObject



21
22
23
# File 'lib/rd_insightly.rb', line 21

def self.api_token
  @auth.api_token
end

.authorized?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/rd_insightly.rb', line 17

def self.authorized?
  @auth.authorized?
end

.create_authorization(api_token) ⇒ Object



13
14
15
# File 'lib/rd_insightly.rb', line 13

def self.create_authorization(api_token)
  @auth = Auth.create(api_token)
end