Class: Todoplicator
- Inherits:
-
Object
- Object
- Todoplicator
- Defined in:
- lib/todoplicator.rb,
lib/todoplicator/find_adapter.rb,
lib/todoplicator/git_hub_adapter.rb,
lib/todoplicator/git_lab_adapter.rb,
lib/todoplicator/adapter_registry.rb
Defined Under Namespace
Classes: AdapterRegistry, FindAdapter, GitHubAdapter, GitLabAdapter, UnknownAdapter
Instance Method Summary collapse
- #copy ⇒ Object
-
#initialize(source, destination) ⇒ Todoplicator
constructor
A new instance of Todoplicator.
Constructor Details
#initialize(source, destination) ⇒ Todoplicator
Returns a new instance of Todoplicator.
9 10 11 12 |
# File 'lib/todoplicator.rb', line 9 def initialize(source, destination) @source = FindAdapter.call(source) @destination = FindAdapter.call(destination) end |
Instance Method Details
#copy ⇒ Object
14 15 16 |
# File 'lib/todoplicator.rb', line 14 def copy issues_to_copy.map { |i| create_issue(i) } end |