class Dude::ProjectManagement::Client
Attributes
client[R]
Public Class Methods
new()
click to toggle source
# File lib/dude/project_management/client.rb, line 11 def initialize tool = Dude::SETTINGS[:project_management_tool] return unless LIST_OF_AVAILABLE_PROJECT_MANAGEMENT_TOOLS.include? tool @client = setup_client(tool) end
Public Instance Methods
method_missing(method, *args, &block)
click to toggle source
# File lib/dude/project_management/client.rb, line 22 def method_missing(method, *args, &block) client.send(method, *args, &block) end
respond_to_missing?(method_name, include_private = false)
click to toggle source
# File lib/dude/project_management/client.rb, line 18 def respond_to_missing?(method_name, include_private = false) client.respond_to_missing?(method_name, include_private) end
setup_client(tool)
click to toggle source
# File lib/dude/project_management/client.rb, line 26 def setup_client(tool) Object.const_get("Dude::ProjectManagement::#{tool.capitalize}::Client").new end