Class: Tinderbot::Cli::Application
- Inherits:
-
Thor
- Object
- Thor
- Tinderbot::Cli::Application
- Defined in:
- lib/tinderbot/cli/application.rb
Constant Summary collapse
- FACEBOOK_CREDENTIALS_FILE =
'facebook_credentials.pstore'
Instance Method Summary collapse
- #autolike ⇒ Object
- #dislike(user_id) ⇒ Object
- #like(user_id) ⇒ Object
- #location(location) ⇒ Object
- #profile ⇒ Object
- #recommended ⇒ Object
- #remove(user_id) ⇒ Object
- #send(user_id, message) ⇒ Object
- #updates ⇒ Object
- #user(user_id) ⇒ Object
Instance Method Details
#autolike ⇒ Object
73 74 75 76 77 78 79 |
# File 'lib/tinderbot/cli/application.rb', line 73 def autolike tinder_client = sign_in puts 'Starting likes...' tinder_bot = Tinderbot::Bot.new tinder_client tinder_bot.like_recommended_users end |
#dislike(user_id) ⇒ Object
45 46 47 48 |
# File 'lib/tinderbot/cli/application.rb', line 45 def dislike(user_id) tinder_client = sign_in tinder_client.dislike user_id end |
#like(user_id) ⇒ Object
38 39 40 41 |
# File 'lib/tinderbot/cli/application.rb', line 38 def like(user_id) tinder_client = sign_in tinder_client.like user_id end |
#location(location) ⇒ Object
66 67 68 69 |
# File 'lib/tinderbot/cli/application.rb', line 66 def location(location) tinder_client = sign_in tinder_client.update_location(location) end |
#profile ⇒ Object
10 11 12 13 |
# File 'lib/tinderbot/cli/application.rb', line 10 def profile tinder_client = sign_in puts tinder_client.profile.to_yaml end |
#recommended ⇒ Object
31 32 33 34 |
# File 'lib/tinderbot/cli/application.rb', line 31 def recommended tinder_client = sign_in puts tinder_client.recommended_users.to_yaml end |
#remove(user_id) ⇒ Object
52 53 54 55 |
# File 'lib/tinderbot/cli/application.rb', line 52 def remove(user_id) tinder_client = sign_in tinder_client.remove user_id end |
#send(user_id, message) ⇒ Object
59 60 61 62 |
# File 'lib/tinderbot/cli/application.rb', line 59 def send(user_id, ) tinder_client = sign_in puts tinder_client. user_id, end |
#updates ⇒ Object
24 25 26 27 |
# File 'lib/tinderbot/cli/application.rb', line 24 def updates tinder_client = sign_in puts tinder_client.updates.to_yaml end |
#user(user_id) ⇒ Object
17 18 19 20 |
# File 'lib/tinderbot/cli/application.rb', line 17 def user(user_id) tinder_client = sign_in puts tinder_client.user(user_id).to_yaml end |