Sha256: 389a8fa79311990bef7a7e5d32fc3a87ce99949bb533d9acfa5c38831c9d190a

Contents?: true

Size: 410 Bytes

Versions: 1

Compression:

Stored size: 410 Bytes

Contents

module Onebox
  module Engine
    class SpotifyOnebox
      include Engine
      include OpenGraph

      matches do
        http
        with("open.")
        domain("spotify")
        tld("com")
      end

      private

      def data
        {
          url: @url,
          title: raw.title,
          image: raw.images.first,
          description: raw.description
        }
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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