Class: Config::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/instabot/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# File 'lib/instabot/config.rb', line 20

def initialize
    @wait_per_action      = 1 * 60
    @max_comment_per_day  = 50
    @max_follow_per_day   = 50
    @max_like_per_day     = 50
    @max_unfollow_per_day = 50
    @username             = nil
    @password             = nil
    @proxy                = nil
    @username             = nil
    @infinite_tags        = true
    @pre_load             = true
    @print_banner         = true
    @log_status           = true
    @use_proxy            = false
    @use_tor              = false
    @add_tag_per_post     = 1
    @tags                 = []
    @unwanted_list        = []
    @white_list_users     = []
    
    @comments             = [
        %w[this the your],
        %w[photo picture pic shot snapshot],
        %w[is looks feels is really],
        %w[great super good very good good wow WOW cool GREAT magnificent magical very cool stylish beautiful so beautiful so stylish so professional lovely so lovely very lovely glorious so glorious very glorious adorable excellent amazing],
        %w[. .. ... ! !! !!!]
    ]
end

Instance Attribute Details

#add_tag_per_postObject

Returns the value of attribute add_tag_per_post.



13
14
15
# File 'lib/instabot/config.rb', line 13

def add_tag_per_post
  @add_tag_per_post
end

#commentsObject

Returns the value of attribute comments.



13
14
15
# File 'lib/instabot/config.rb', line 13

def comments
  @comments
end

#infinite_tagsObject

Returns the value of attribute infinite_tags.



13
14
15
# File 'lib/instabot/config.rb', line 13

def infinite_tags
  @infinite_tags
end

#log_statusObject

Returns the value of attribute log_status.



13
14
15
# File 'lib/instabot/config.rb', line 13

def log_status
  @log_status
end

#max_comment_per_dayObject

Returns the value of attribute max_comment_per_day.



13
14
15
# File 'lib/instabot/config.rb', line 13

def max_comment_per_day
  @max_comment_per_day
end

#max_follow_per_dayObject

Returns the value of attribute max_follow_per_day.



13
14
15
# File 'lib/instabot/config.rb', line 13

def max_follow_per_day
  @max_follow_per_day
end

#max_like_per_dayObject

Returns the value of attribute max_like_per_day.



13
14
15
# File 'lib/instabot/config.rb', line 13

def max_like_per_day
  @max_like_per_day
end

#max_unfollow_per_dayObject

Returns the value of attribute max_unfollow_per_day.



13
14
15
# File 'lib/instabot/config.rb', line 13

def max_unfollow_per_day
  @max_unfollow_per_day
end

#passwordObject

Returns the value of attribute password.



13
14
15
# File 'lib/instabot/config.rb', line 13

def password
  @password
end

#pre_loadObject

Returns the value of attribute pre_load.



13
14
15
# File 'lib/instabot/config.rb', line 13

def pre_load
  @pre_load
end

Returns the value of attribute print_banner.



13
14
15
# File 'lib/instabot/config.rb', line 13

def print_banner
  @print_banner
end

#proxyObject

Returns the value of attribute proxy.



13
14
15
# File 'lib/instabot/config.rb', line 13

def proxy
  @proxy
end

#tagsObject

Returns the value of attribute tags.



13
14
15
# File 'lib/instabot/config.rb', line 13

def tags
  @tags
end

#unwanted_listObject

Returns the value of attribute unwanted_list.



13
14
15
# File 'lib/instabot/config.rb', line 13

def unwanted_list
  @unwanted_list
end

#use_proxyObject

Returns the value of attribute use_proxy.



13
14
15
# File 'lib/instabot/config.rb', line 13

def use_proxy
  @use_proxy
end

#use_torObject

Returns the value of attribute use_tor.



13
14
15
# File 'lib/instabot/config.rb', line 13

def use_tor
  @use_tor
end

#usernameObject

Returns the value of attribute username.



13
14
15
# File 'lib/instabot/config.rb', line 13

def username
  @username
end

#wait_per_actionObject

Returns the value of attribute wait_per_action.



13
14
15
# File 'lib/instabot/config.rb', line 13

def wait_per_action
  @wait_per_action
end

#white_list_usersObject

Returns the value of attribute white_list_users.



13
14
15
# File 'lib/instabot/config.rb', line 13

def white_list_users
  @white_list_users
end