class InstagramCrawler::Config

Attributes

after_date[R]
base_path[R]
base_url[R]
before_date[R]
default_url[R]
download[RW]
log_path[R]
parse_after_date[R]
parse_before_date[R]
port[W]
proxyname[RW]
user_name[R]

Public Class Methods

after_date=(after_date) click to toggle source
# File lib/instagram_crawler/config.rb, line 17
def after_date=(after_date)
  @after_date = after_date
  @parse_after_date = Time.parse(after_date).to_i
end
before_date=(before_date) click to toggle source
# File lib/instagram_crawler/config.rb, line 22
def before_date=(before_date)
  @before_date = before_date
  @parse_before_date = Time.parse(before_date).to_i
end
port() click to toggle source
# File lib/instagram_crawler/config.rb, line 27
def port
  @port ? @port.to_i : 8080
end
user_name=(user_name) click to toggle source
# File lib/instagram_crawler/config.rb, line 10
def user_name=(user_name)
  @user_name = user_name
  @base_url  = "#{default_url}/#{user_name}/"
  @base_path = "./instagram-crawler/#{user_name}"
  @log_path = "./instagram-crawler/#{user_name}/log_file"
end