Class: DayoneToolbox::API::EditEntry

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



77
78
79
80
81
82
83
84
85
# File 'lib/dayone_toolbox/api.rb', line 77

def exec
  hash = {}
  @options.each do |k, v|
    @entry.send("#{k}=", v)
    hash.merge!({"#{k}" => v})
  end
  @result = hash
  self
end