Class: Durt::UpworkPlugin

Inherits:
Plugin
  • Object
show all
Defined in:
lib/durt/upwork_plugin.rb

Constant Summary

Constants inherited from Plugin

Plugin::PLUGINS

Instance Attribute Summary

Attributes inherited from Plugin

#config, #project

Instance Method Summary collapse

Methods inherited from Plugin

all, #before_enter, #bug_tracker, demo_config, #fetch_issues, #filter, find_by_plugin_name, #initialize, #issues, #plugin_name, plugin_name, #push_issue, #source_name, #switch_project, #time_tracker

Constructor Details

This class inherits a constructor from Durt::Plugin

Instance Method Details

#enter(issue) ⇒ Object



7
8
9
# File 'lib/durt/upwork_plugin.rb', line 7

def enter(issue)
  time_tracker.enter(issue)
end

#start(_value) ⇒ Object



11
12
13
# File 'lib/durt/upwork_plugin.rb', line 11

def start(_value)
  time_tracker.start
end

#stop(_value) ⇒ Object



15
16
17
# File 'lib/durt/upwork_plugin.rb', line 15

def stop(_value)
  time_tracker.stop
end

#time_tracker_classObject



19
20
21
# File 'lib/durt/upwork_plugin.rb', line 19

def time_tracker_class
  Durt::UpworkTracker
end