class Balboa::Interactor::Command::FetchLastPunchCommand
Public Instance Methods
execute()
click to toggle source
# File lib/balboa/interactor/command/fetch_last_punch_command.rb, line 11 def execute punches_path find_last_punch_date end
Private Instance Methods
find_last_punch_date()
click to toggle source
# File lib/balboa/interactor/command/fetch_last_punch_command.rb, line 23 def find_last_punch_date find('tbody tr:first-child td:first-child').text end
punches_path()
click to toggle source
# File lib/balboa/interactor/command/fetch_last_punch_command.rb, line 19 def punches_path visit('/punches') end