Class: Tinderbot::Cli::Application

Inherits:
Thor
  • Object
show all
Defined in:
lib/tinderbot/cli/application.rb

Constant Summary collapse

FACEBOOK_CREDENTIALS_FILE =
'facebook_credentials.pstore'

Instance Method Summary collapse

Instance Method Details

#autolikeObject



73
74
75
76
77
78
79
# File 'lib/tinderbot/cli/application.rb', line 73

def autolike
  tinder_client = 

  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 = 
  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 = 
  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 = 
  tinder_client.update_location(location)
end

#profileObject



10
11
12
13
# File 'lib/tinderbot/cli/application.rb', line 10

def profile
  tinder_client = 
  puts tinder_client.profile.to_yaml
end


31
32
33
34
# File 'lib/tinderbot/cli/application.rb', line 31

def recommended
  tinder_client = 
  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 = 
  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, message)
  tinder_client = 
  puts tinder_client.send_message user_id, message
end

#updatesObject



24
25
26
27
# File 'lib/tinderbot/cli/application.rb', line 24

def updates
  tinder_client = 
  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 = 
  puts tinder_client.user(user_id).to_yaml
end