class Netdocuments::Configuration

Attributes

cabinet_id[RW]
cabinet_name[RW]
client_secret[RW]
folder_path_id[RW]
log_path[RW]
logger[RW]
refresh_token[RW]

Public Class Methods

new() click to toggle source
# File lib/netdocuments/configuration.rb, line 7
def initialize
  log_dir = create_log_dir
  @cabinet_id = 'abc'
  @client_secret = '1291271823781273712129127182378127371212912718237812737121291271823781273712'
  @refresh_token = '1291271823781273712129127182378127371212912718237812737121291271823781273712'
  @log_path = "#{log_dir}/netdocuments.log"
  @folder_path_id = '48'
  @cabinet_id = 'NG-12345'
  @cabinet_name ='Test'
  @logger = Logger.new(STDOUT)
end

Public Instance Methods

create_log_dir() click to toggle source
# File lib/netdocuments/configuration.rb, line 19
def create_log_dir
  FileUtils.mkdir_p("#{Dir.pwd}/log").last
end