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-1.9.15 lib/onebox/engine/html.rb
onebox-1.9.14 lib/onebox/engine/html.rb
onebox-1.9.13 lib/onebox/engine/html.rb
onebox-1.9.12 lib/onebox/engine/html.rb
onebox-1.9.11 lib/onebox/engine/html.rb
onebox-1.9.10 lib/onebox/engine/html.rb
onebox-1.9.9 lib/onebox/engine/html.rb
onebox-1.9.8 lib/onebox/engine/html.rb
onebox-1.9.7 lib/onebox/engine/html.rb
onebox-1.9.6 lib/onebox/engine/html.rb
onebox-1.9.5 lib/onebox/engine/html.rb
onebox-1.9.4 lib/onebox/engine/html.rb
onebox-1.9.3 lib/onebox/engine/html.rb
onebox-1.9.2 lib/onebox/engine/html.rb
onebox-1.9.1 lib/onebox/engine/html.rb
onebox-1.9.0 lib/onebox/engine/html.rb
onebox-1.8.99 lib/onebox/engine/html.rb
onebox-1.8.98 lib/onebox/engine/html.rb
onebox-1.8.97 lib/onebox/engine/html.rb
onebox-1.8.96 lib/onebox/engine/html.rb