Class: HustleAndFlow::IssueTracker

Inherits:
Object
  • Object
show all
Defined in:
lib/hustle_and_flow/issue_tracker.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(repo:) ⇒ IssueTracker

Returns a new instance of IssueTracker.



7
8
9
# File 'lib/hustle_and_flow/issue_tracker.rb', line 7

def initialize(repo:)
  self.adapter = self.class.detect.new(repo: repo)
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(name, *args) ⇒ Object



15
16
17
# File 'lib/hustle_and_flow/issue_tracker.rb', line 15

def method_missing(name, *args)
  adapter.public_send(name, *args)
end

Instance Attribute Details

#adapterObject

Returns the value of attribute adapter.



5
6
7
# File 'lib/hustle_and_flow/issue_tracker.rb', line 5

def adapter
  @adapter
end

Class Method Details

.detectObject



11
12
13
# File 'lib/hustle_and_flow/issue_tracker.rb', line 11

def self.detect
  ::HustleAndFlow::IssueTrackers::Github::Tracker
end