Sha256: 66b1769768206e84a04412249dd1e012684e056e1930bc25cbb97cfec815382e
Contents?: true
Size: 595 Bytes
Versions: 3
Compression:
Stored size: 595 Bytes
Contents
require 'grape-entity' 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
3 entries across 3 versions & 1 rubygems