Class: Log
- Inherits:
-
Object
- Object
- Log
- Defined in:
- lib/filbert/log.rb
Instance Method Summary collapse
-
#initialize(task_name, db_name, datastore) ⇒ Log
constructor
A new instance of Log.
- #success ⇒ Object
Constructor Details
#initialize(task_name, db_name, datastore) ⇒ Log
Returns a new instance of Log.
5 6 7 8 9 |
# File 'lib/filbert/log.rb', line 5 def initialize(task_name, db_name, datastore) @task_name = task_name @db_name = db_name @datastore = datastore end |
Instance Method Details
#success ⇒ Object
11 12 13 14 15 |
# File 'lib/filbert/log.rb', line 11 def success RestClient.put(datastore, payload.to_json) unless datastore.nil? rescue RestClient::Exception #just dont explode the back up task end |