Class: Todoplicator::FindAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/todoplicator/find_adapter.rb

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(location) ⇒ FindAdapter

Returns a new instance of FindAdapter.



7
8
9
# File 'lib/todoplicator/find_adapter.rb', line 7

def initialize(location)
  @location = location
end

Class Method Details

.call(*args) ⇒ Object



3
4
5
# File 'lib/todoplicator/find_adapter.rb', line 3

def self.call(*args)
  new(*args).call
end

Instance Method Details

#callObject



11
12
13
# File 'lib/todoplicator/find_adapter.rb', line 11

def call
  klass.new(target)
end