class ROF::Translators::JsonldToRof::PredicateHandler::UrlHandler::LocationExtractor

@api private Responsible for coordinating the extraction of the location

Public Class Methods

new(predicate, handlers) click to toggle source
# File lib/rof/translators/jsonld_to_rof/predicate_handler.rb, line 176
def initialize(predicate, handlers)
  @predicate = predicate
  @handlers = Array.wrap(handlers)
end

Public Instance Methods

handle(object, accumulator, blank_node) click to toggle source
# File lib/rof/translators/jsonld_to_rof/predicate_handler.rb, line 181
def handle(object, accumulator, blank_node)
  @handlers.each do |handler|
    handler.call(object, accumulator, blank_node)
  end
  accumulator
end