Class: DayoneToolbox::API::FetchEntry
- Defined in:
- lib/dayone_toolbox/api.rb
Instance Attribute Summary
Attributes inherited from Base
#cli_exit_code, #entry, #result
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from DayoneToolbox::API::Base
Instance Method Details
#exec ⇒ Object
90 91 92 93 94 95 96 97 |
# File 'lib/dayone_toolbox/api.rb', line 90 def exec hash = {} @options.each do |k, v| hash.merge!({ "#{k}" => @entry.send(k)}) end @result = hash self end |