Class: TimeTree::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/timetree/configuration.rb

Overview

TimeTree apis client configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



20
21
22
23
# File 'lib/timetree/configuration.rb', line 20

def initialize
  @logger = Logger.new $stdout
  @logger.level = :warn
end

Instance Attribute Details

#calendar_app_application_idString

Returns CalendarApp’s app id.

Returns:

  • (String)

    CalendarApp’s app id



12
13
14
# File 'lib/timetree/configuration.rb', line 12

def calendar_app_application_id
  @calendar_app_application_id
end

#calendar_app_private_keyString

e.g. File.read(‘<YOUR_PATH_TO_PEM_FILE>’)

Returns:

  • (String)

    CalendarApp’s private key content#



15
16
17
# File 'lib/timetree/configuration.rb', line 15

def calendar_app_private_key
  @calendar_app_private_key
end

#loggerLogger

Returns:

  • (Logger)


18
19
20
# File 'lib/timetree/configuration.rb', line 18

def logger
  @logger
end

#oauth_app_tokenString

Returns OAuthApp’s access token.

Returns:

  • (String)

    OAuthApp’s access token



9
10
11
# File 'lib/timetree/configuration.rb', line 9

def oauth_app_token
  @oauth_app_token
end