Class: DayoneToolbox::API::FetchEntry

Inherits:
Base
  • Object
show all
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

#initialize, #store

Constructor Details

This class inherits a constructor from DayoneToolbox::API::Base

Instance Method Details

#execObject



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