module Onebox module Engine class GooglePlayAppOnebox include Engine include LayoutSupport include HTML matches do http with("play.") domain("google") tld("com") with("/store/apps/") end private def data { link: link, title: raw.css(".document-title div").inner_text, developer: raw.css(".document-subtitle.primary").inner_text, image: raw.css(".cover-image").first["src"], description: raw.css(".text-body div").inner_text, price: raw.css(".price.buy meta[itemprop=price]").first["content"] } end end end end