class Everhour2toggl::CLI
Public Instance Methods
convert()
click to toggle source
# File lib/everhour2toggl/cli.rb, line 26 def convert toggl = Toggl.new(input: options[:input], starting_time: options[:starting_time], interval: options[:interval], wid: options[:wid], pid: options[:pid], tags: options[:tags]) toggl.convert end
export()
click to toggle source
# File lib/everhour2toggl/cli.rb, line 14 def export everhour = Everhour.new(from: options[:from], to: options[:to], fields: options[:fields], apikey: options[:apikey]) everhour.export end
post()
click to toggle source
# File lib/everhour2toggl/cli.rb, line 34 def post toggl_post = Toggl::Post.new(api_token: options[:api_token], input: options[:input]) toggl_post.post end