Sha256: a868669c283e025449e9e95a08dba692e32597ab14675cd92783344f50f9fc66

Contents?: true

Size: 337 Bytes

Versions: 1

Compression:

Stored size: 337 Bytes

Contents

module Onebox
  module Engine
    class ExampleOnebox
      include Engine
      include HTML

      matches do
        http
        maybe("www.")
        domain("example")
        has(".com").maybe("/")
      end

      private

      def data
        {
          header: raw.css("h1").inner_text
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
onebox-1.1.0 lib/onebox/engine/example_onebox.rb