Method: Kentico::Kontent::Delivery::Resolvers::ContentLinkResolver#initialize

Defined in:
lib/delivery/resolvers/content_link_resolver.rb

#initialize(found_handler = nil, not_found_handler = nil) ⇒ ContentLinkResolver

Constructor.

  • Args:

    • found_handler (lambda) optional Method to be called when resolving a content link and the content item is present in the response

    • not_found_handler (lambda) optional Method to be called when resolving a content link and the content item isn’t present in the response



16
17
18
19
# File 'lib/delivery/resolvers/content_link_resolver.rb', line 16

def initialize(found_handler = nil, not_found_handler = nil)
  @found_handler = found_handler
  @not_found = not_found_handler
end