Sha256: 89f0dce2331d31912b9155573776a6c566e8eeca50eefe1940b278529b9d4afa

Contents?: true

Size: 419 Bytes

Versions: 1

Compression:

Stored size: 419 Bytes

Contents

# frozen_string_literal: true

module Onebox
  module Engine
    module HTML
      private

      # Overwrite for any custom headers
      def http_params
        {}
      end

      def raw
        body_cacher = self.options[:body_cacher] if self.options
        @raw ||= Onebox::Helpers.fetch_html_doc(url, http_params, body_cacher)
      end

      def html?
        raw.respond_to(:css)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
onebox-2.2.9 lib/onebox/engine/html.rb