Sha256: deb093d0ec3c7c1f681578e2c10a08f4d92f67ba2daccd9c027f117607d0c23a
Contents?: true
Size: 549 Bytes
Versions: 1
Compression:
Stored size: 549 Bytes
Contents
module Gemgento class Magento::CustomerAdapter include MagentoAdapter def self.find_by(attributes) response = Gemgento::API::SOAP::Customer::Customer.list filters(attributes) if response.body_overflow[:store_view].first[:item] if response.body_overflow[:store_view].first[:item].is_a? Array return response.body_overflow[:store_view].first[:item].first else return response.body_overflow[:store_view].first[:item] end else return nil end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gemgento-2.8.0 | app/adapters/gemgento/magento/customer_adapter.rb |