lib/panchira/resolvers/resolver.rb
# This function is called right after this Resolver instance is made.
# Fetch page from @url and return PanchiraResult.
This function is called right after this Resolver instance is made.
Fetch page from @url and return PanchiraResult.
This function is called right after this Resolver instance is made . Fetch page from @url and return PanchiraResult .
def fetch
      result = PanchiraResult.new
      @page = fetch_page(@url)
      result.canonical_url = parse_canonical_url
      @page = fetch_page(result.canonical_url) if @url != result.canonical_url
      result.title = parse_title
      result.description = parse_description
      result.image = parse_image
      result.tags = parse_tags
      if respond_to?(:parse_authors, true)
        result.authors = parse_authors
      else
        result.author = parse_author
      end
      result.circle = parse_circle
      result.resolver = parse_resolver
      result
    end
def fetch result = PanchiraResult . new @page = fetch_page ( @url ) result . canonical_url = parse_canonical_url @page = fetch_page ( result . canonical_url ) if @url != result . canonical_url result . title = parse_title result . description = parse_description result . image = parse_image result . tags = parse_tags if respond_to? ( :parse_authors , true ) result . authors = parse_authors else result . author = parse_author end result . circle = parse_circle result . resolver = parse_resolver result end
This function is called right after this Resolver instance is made.
This function is called right after this Resolver instance is made .