class Pickpocket::Configuration
Attributes
consumer_key[RW]
home_folder[RW]
library_file[RW]
oauth_token_file[RW]
pocket_homepage[RW]
pocket_oauth_request_url[RW]
pocket_retrieve_url[RW]
pocket_send_url[RW]
Public Class Methods
new()
click to toggle source
# File lib/pickpocket/configuration.rb, line 15 def initialize # Files @home_folder = File.join(Dir.home, '.pickpocket') @authorization_token_file = File.join(@home_folder, 'authorization_token') @oauth_token_file = File.join(@home_folder, 'oauth_token') @library_file = File.join(@home_folder, 'library_file') # Pocket @consumer_key = ENV.fetch('POCKET_CONSUMER_KEY', '58132-f824d5fbf935681e22e86a3c') @pocket_homepage = 'https://getpocket.com' @pocket_oauth_authorize_url = 'https://getpocket.com/v3/oauth/authorize' @pocket_oauth_request_url = 'https://getpocket.com/v3/oauth/request' @pocket_retrieve_url = 'https://getpocket.com/v3/get' @pocket_send_url = 'https://getpocket.com/v3/send' @pocket_user_authorize_url = 'https://getpocket.com/auth/authorize' end