Class: TimeBuffer::ApplicationHandler
- Inherits:
-
Object
- Object
- TimeBuffer::ApplicationHandler
- Defined in:
- lib/time_buffer/application_handler.rb
Instance Method Summary collapse
-
#initialize(app_data) ⇒ ApplicationHandler
constructor
A new instance of ApplicationHandler.
- #insert_application ⇒ Object
Constructor Details
permalink #initialize(app_data) ⇒ ApplicationHandler
Returns a new instance of ApplicationHandler.
5 6 7 |
# File 'lib/time_buffer/application_handler.rb', line 5 def initialize(app_data) @app_data = app_data end |
Instance Method Details
permalink #insert_application ⇒ Object
[View source]
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 |