Method: Magenthor::Customer#delete
- Defined in:
- lib/magenthor/customer.rb
#delete ⇒ TrueClass, FalseClass
Remove from Magento the local Customer
72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 |
# File 'lib/magenthor/customer.rb', line 72 def delete response = self.class.commit('customer.delete', [self.customer_id]) return false if response == false methods.grep(/\w=$/).each do |m| send(m, nil) end self.customer_id = nil self.increment_id = nil self.created_at = nil self.updated_at = nil self.password_hash = nil return true end |