Method: TimeBuffer::ApplicationHandler#insert_application

Defined in:
lib/time_buffer/application_handler.rb

#insert_applicationObject



9
10
11
12
13
14
# File 'lib/time_buffer/application_handler.rb', line 9

def insert_application
  TimeBuffer::DatabaseConnector.new.execute(
    "INSERT OR IGNORE INTO applications (bundle_id, app_name) VALUES (?, ?)",
    [app_data.bundle_id, app_data.name]
  )
end