Module: IhealthBot

Extended by:
Capybara::DSL
Defined in:
lib/ihealth_bot.rb,
lib/ihealth_bot/config.rb,
lib/ihealth_bot/version.rb,
lib/ihealth_bot/endpoints.rb,
lib/ihealth_bot/endpoints/base.rb,
lib/ihealth_bot/endpoints/food.rb,
lib/ihealth_bot/endpoints/weight.rb,
lib/ihealth_bot/endpoints/activities.rb,
lib/ihealth_bot/endpoints/blood_glucose.rb,
lib/ihealth_bot/endpoints/blood_pressure.rb

Defined Under Namespace

Modules: Endpoints Classes: Config

Constant Summary collapse

VERSION =
'0.1.1'

Class Method Summary collapse

Class Method Details

.create_dataObject



8
9
10
11
12
13
14
15
16
# File 'lib/ihealth_bot.rb', line 8

def self.create_data
  
  Endpoints::Activities.create
  Endpoints::BloodGlucose.create
  Endpoints::BloodPressure.create
  Endpoints::Food.create
  Endpoints::Weight.create
  puts "Done! \n"
end

.loginObject



18
19
20
21
22
23
24
25
# File 'lib/ihealth_bot.rb', line 18

def self.
  visit('/')
  print 'Logging in...'
  fill_in 'Email', with: Config.email
  fill_in 'Password', with: Config.password
  click_button 'Login'
  print " ✓ \n"
end