Sha256: bd29c0d049ed56032f156b6d9564ef41751a02327a6c415d6b24258191b6fac9

Contents?: true

Size: 310 Bytes

Versions: 62

Compression:

Stored size: 310 Bytes

Contents

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

62 entries across 62 versions & 1 rubygems

Version Path
onebox-1.8.89 lib/onebox/engine/html.rb
onebox-1.8.88 lib/onebox/engine/html.rb
onebox-1.8.87 lib/onebox/engine/html.rb
onebox-1.8.86 lib/onebox/engine/html.rb
onebox-1.8.85 lib/onebox/engine/html.rb
onebox-1.8.84 lib/onebox/engine/html.rb
onebox-1.8.83 lib/onebox/engine/html.rb
onebox-1.8.82 lib/onebox/engine/html.rb
onebox-1.8.81 lib/onebox/engine/html.rb
onebox-1.8.80 lib/onebox/engine/html.rb
onebox-1.8.79 lib/onebox/engine/html.rb
onebox-1.8.78 lib/onebox/engine/html.rb
onebox-1.8.77 lib/onebox/engine/html.rb
onebox-1.8.76 lib/onebox/engine/html.rb
onebox-1.8.75 lib/onebox/engine/html.rb
onebox-1.8.74 lib/onebox/engine/html.rb
onebox-1.8.73 lib/onebox/engine/html.rb
onebox-1.8.72 lib/onebox/engine/html.rb
onebox-1.8.71 lib/onebox/engine/html.rb
onebox-1.8.70 lib/onebox/engine/html.rb