Class: Config::Configuration
- Inherits:
-
Object
- Object
- Config::Configuration
- Defined in:
- lib/instabot/config.rb
Instance Attribute Summary collapse
-
#add_tag_per_post ⇒ Object
Returns the value of attribute add_tag_per_post.
-
#comments ⇒ Object
Returns the value of attribute comments.
-
#infinite_tags ⇒ Object
Returns the value of attribute infinite_tags.
-
#log_status ⇒ Object
Returns the value of attribute log_status.
-
#max_comment_per_day ⇒ Object
Returns the value of attribute max_comment_per_day.
-
#max_follow_per_day ⇒ Object
Returns the value of attribute max_follow_per_day.
-
#max_like_per_day ⇒ Object
Returns the value of attribute max_like_per_day.
-
#max_unfollow_per_day ⇒ Object
Returns the value of attribute max_unfollow_per_day.
-
#password ⇒ Object
Returns the value of attribute password.
-
#pre_load ⇒ Object
Returns the value of attribute pre_load.
-
#print_banner ⇒ Object
Returns the value of attribute print_banner.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
-
#tags ⇒ Object
Returns the value of attribute tags.
-
#unwanted_list ⇒ Object
Returns the value of attribute unwanted_list.
-
#use_proxy ⇒ Object
Returns the value of attribute use_proxy.
-
#use_tor ⇒ Object
Returns the value of attribute use_tor.
-
#username ⇒ Object
Returns the value of attribute username.
-
#wait_per_action ⇒ Object
Returns the value of attribute wait_per_action.
-
#white_list_users ⇒ Object
Returns the value of attribute white_list_users.
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 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_post ⇒ Object
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 |
#comments ⇒ Object
Returns the value of attribute comments.
13 14 15 |
# File 'lib/instabot/config.rb', line 13 def comments @comments end |
#infinite_tags ⇒ Object
Returns the value of attribute infinite_tags.
13 14 15 |
# File 'lib/instabot/config.rb', line 13 def @infinite_tags end |
#log_status ⇒ Object
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_day ⇒ Object
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_day ⇒ Object
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_day ⇒ Object
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_day ⇒ Object
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 |
#password ⇒ Object
Returns the value of attribute password.
13 14 15 |
# File 'lib/instabot/config.rb', line 13 def password @password end |
#pre_load ⇒ Object
Returns the value of attribute pre_load.
13 14 15 |
# File 'lib/instabot/config.rb', line 13 def pre_load @pre_load end |
#print_banner ⇒ Object
Returns the value of attribute print_banner.
13 14 15 |
# File 'lib/instabot/config.rb', line 13 def @print_banner end |
#proxy ⇒ Object
Returns the value of attribute proxy.
13 14 15 |
# File 'lib/instabot/config.rb', line 13 def proxy @proxy end |
#tags ⇒ Object
Returns the value of attribute tags.
13 14 15 |
# File 'lib/instabot/config.rb', line 13 def @tags end |
#unwanted_list ⇒ Object
Returns the value of attribute unwanted_list.
13 14 15 |
# File 'lib/instabot/config.rb', line 13 def unwanted_list @unwanted_list end |
#use_proxy ⇒ Object
Returns the value of attribute use_proxy.
13 14 15 |
# File 'lib/instabot/config.rb', line 13 def use_proxy @use_proxy end |
#use_tor ⇒ Object
Returns the value of attribute use_tor.
13 14 15 |
# File 'lib/instabot/config.rb', line 13 def use_tor @use_tor end |
#username ⇒ Object
Returns the value of attribute username.
13 14 15 |
# File 'lib/instabot/config.rb', line 13 def username @username end |
#wait_per_action ⇒ Object
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_users ⇒ Object
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 |