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.30 lib/onebox/engine/html.rb
onebox-1.9.29 lib/onebox/engine/html.rb
onebox-1.9.28.4 lib/onebox/engine/html.rb
onebox-1.9.28.3 lib/onebox/engine/html.rb
onebox-1.9.28.2 lib/onebox/engine/html.rb
onebox-1.9.28.1 lib/onebox/engine/html.rb
onebox-1.9.28 lib/onebox/engine/html.rb
onebox-1.9.27.2 lib/onebox/engine/html.rb
onebox-1.9.27.1 lib/onebox/engine/html.rb
onebox-1.9.26 lib/onebox/engine/html.rb
onebox-1.9.25 lib/onebox/engine/html.rb
onebox-1.9.24 lib/onebox/engine/html.rb
onebox-1.9.23 lib/onebox/engine/html.rb
onebox-1.9.22 lib/onebox/engine/html.rb
onebox-1.9.21 lib/onebox/engine/html.rb
onebox-1.9.20 lib/onebox/engine/html.rb
onebox-1.9.19 lib/onebox/engine/html.rb
onebox-1.9.18 lib/onebox/engine/html.rb
onebox-1.9.17 lib/onebox/engine/html.rb
onebox-1.9.16 lib/onebox/engine/html.rb