Class: DayoneToolbox::API::SearchEntry
- 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
33 34 35 36 |
# File 'lib/dayone_toolbox/api.rb', line 33 def exec @result = < @entry.to_h self end |
#plist_options ⇒ Object
25 26 27 28 29 30 31 |
# File 'lib/dayone_toolbox/api.rb', line 25 def = {} @options.map do |k, v| .merge!(DayoneToolbox::Entry.entry_attributes[k] => v) end end |