Class: TimeTree::Configuration
- Inherits:
-
Object
- Object
- TimeTree::Configuration
- Defined in:
- lib/timetree/configuration.rb
Overview
TimeTree apis client configuration.
Instance Attribute Summary collapse
-
#calendar_app_application_id ⇒ String
CalendarApp’s app id.
-
#calendar_app_private_key ⇒ String
e.g.
- #logger ⇒ Logger
-
#oauth_app_token ⇒ String
OAuthApp’s access token.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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_id ⇒ String
Returns 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_key ⇒ String
e.g. File.read(‘<YOUR_PATH_TO_PEM_FILE>’)
15 16 17 |
# File 'lib/timetree/configuration.rb', line 15 def calendar_app_private_key @calendar_app_private_key end |
#logger ⇒ Logger
18 19 20 |
# File 'lib/timetree/configuration.rb', line 18 def logger @logger end |
#oauth_app_token ⇒ String
Returns OAuthApp’s access token.
9 10 11 |
# File 'lib/timetree/configuration.rb', line 9 def oauth_app_token @oauth_app_token end |