Class: ItemBuilder::Modes::Quantity::LazadaService

Inherits:
Base
  • Object
show all
Defined in:
lib/item_builder/modes/quantity/lazada_service.rb

Instance Attribute Summary

Attributes inherited from Base

#available_quantity, #listing

Instance Method Summary collapse

Methods inherited from Base

#api_data, #apigateway_get, #apigateway_post, #credential, #data, #headers, #initialize, #order_host, #reserved_params, #reserved_stock

Constructor Details

This class inherits a constructor from ItemBuilder::Modes::Quantity::Base

Instance Method Details

#performObject



8
9
10
# File 'lib/item_builder/modes/quantity/lazada_service.rb', line 8

def perform
  available_quantity + reserved_stock.to_i
end