Class: MercadolibreApi::Sellers::Queries::GetID
- Inherits:
-
ActiveInteraction::Base
- Object
- ActiveInteraction::Base
- MercadolibreApi::Sellers::Queries::GetID
- Defined in:
- lib/mercadolibre_api/sellers/queries/get_id.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
11 12 13 14 |
# File 'lib/mercadolibre_api/sellers/queries/get_id.rb', line 11 def execute response = Net::HTTP.get_response(product_uri) JSON.parse(response.body, symbolize_names: true).dig(:seller_id) end |