Sha256: 8ba0723920bc496430fdc021cbc7d33f23c3b62bf57137912328d32e334af07d

Contents?: true

Size: 341 Bytes

Versions: 66

Compression:

Stored size: 341 Bytes

Contents

# frozen_string_literal: true

module Onebox
  module Engine
    module HTML
      private

      # Overwrite for any custom headers
      def http_params
        {}
      end

      def raw
        @raw ||= Onebox::Helpers.fetch_html_doc(url, http_params)
      end

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

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
onebox-2.2.8 lib/onebox/engine/html.rb
onebox-2.2.6 lib/onebox/engine/html.rb
onebox-2.2.5 lib/onebox/engine/html.rb
onebox-2.2.4 lib/onebox/engine/html.rb
onebox-2.2.2 lib/onebox/engine/html.rb
onebox-2.2.1 lib/onebox/engine/html.rb
onebox-2.2.0 lib/onebox/engine/html.rb
onebox-2.1.9 lib/onebox/engine/html.rb
onebox-2.1.8 lib/onebox/engine/html.rb
onebox-2.1.7 lib/onebox/engine/html.rb
onebox-2.1.6 lib/onebox/engine/html.rb
onebox-2.1.5 lib/onebox/engine/html.rb
onebox-2.1.4 lib/onebox/engine/html.rb
onebox-2.1.3 lib/onebox/engine/html.rb
onebox-2.1.2 lib/onebox/engine/html.rb
onebox-2.1.1 lib/onebox/engine/html.rb
onebox-2.1.0 lib/onebox/engine/html.rb
onebox-2.0.2 lib/onebox/engine/html.rb
onebox-2.0.1 lib/onebox/engine/html.rb
onebox-2.0.0 lib/onebox/engine/html.rb