Sha256: 47e9be1d7a21118aa1c6b17824bd71318569c0e2d1569244037fa4ca5e3e8ee6
Contents?: true
Size: 654 Bytes
Versions: 6
Compression:
Stored size: 654 Bytes
Contents
require 'grape-entity' require './lib/mercadolibre_api/products/entities/picture' module MercadolibreApi module Products module Entities class Product < Grape::Entity expose :id expose :title expose :price expose :currency_id expose :confirmed_sold_quantity, as: :sold_quantity, override: true expose :description expose :status expose :seller_id do |product, _options| product.dig(:seller, :id) || product[:seller_id] end expose :pictures, using: MercadolibreApi::Products::Entities::Picture expose :geolocation end end end end
Version data entries
6 entries across 6 versions & 1 rubygems