Module: OctadeskApi

Defined in:
lib/octadesk_api.rb,
lib/octadesk_api/client.rb,
lib/octadesk_api/errors.rb,
lib/octadesk_api/version.rb,
lib/octadesk_api/configuration.rb,
lib/octadesk_api/client/person_api.rb,
lib/octadesk_api/client/ticket_api.rb,
lib/octadesk_api/client/organization_api.rb

Defined Under Namespace

Classes: Client, Configuration, Error, MissingTokenError, OctadeskError

Constant Summary collapse

VERSION =
"0.1.3"

Class Method Summary collapse

Class Method Details

.configurationObject



14
15
16
# File 'lib/octadesk_api.rb', line 14

def configuration
  @configuration ||= Configuration.new
end

.production?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'lib/octadesk_api.rb', line 10

def production?
  ENV['RAILS_ENV'] == 'production' || self.env == 'production'
end