Class: FedoraMigrate::TargetConstructor

Inherits:
Object
  • Object
show all
Defined in:
lib/fedora_migrate/target_constructor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(candidates) ⇒ TargetConstructor

Returns a new instance of TargetConstructor.



6
7
8
# File 'lib/fedora_migrate/target_constructor.rb', line 6

def initialize candidates
  @candidates = candidates
end

Instance Attribute Details

#candidatesObject

Returns the value of attribute candidates.



4
5
6
# File 'lib/fedora_migrate/target_constructor.rb', line 4

def candidates
  @candidates
end

#targetObject

Returns the value of attribute target.



4
5
6
# File 'lib/fedora_migrate/target_constructor.rb', line 4

def target
  @target
end

Instance Method Details

#buildObject



10
11
12
13
# File 'lib/fedora_migrate/target_constructor.rb', line 10

def build
  determine_target
  return self
end