Class: Gemgento::API::SOAP::Miscellaneous::Store
- Inherits:
-
Object
- Object
- Gemgento::API::SOAP::Miscellaneous::Store
- Defined in:
- lib/gemgento/api/soap/miscellaneous/store.rb
Class Method Summary collapse
Class Method Details
.fetch_all ⇒ Object
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/gemgento/api/soap/miscellaneous/store.rb', line 7 def self.fetch_all response = list if response.success? response.body[:stores][:item].each do |store| sync_magento_to_local(store) end end end |
.list ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/gemgento/api/soap/miscellaneous/store.rb', line 18 def self.list response = MagentoApi.create_call(:store_list) if response.success? && !response.body[:stores][:item].is_a?(Array) response.body[:stores][:item] = [response.body[:stores][:item]] end return response end |