Module: Crm::Core::Mixins::Modifiable
- Extended by:
- ActiveSupport::Concern, ClassMethods
- Included in:
- Account, Activity, Crm::Collection, Crm::Contact, Event, EventContact, Mailing, Type
- Defined in:
- lib/crm/core/mixins/modifiable.rb
Overview
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
-
#delete ⇒ Object
(also: #destroy)
Deletes this item.
-
#update(attributes = {}) ⇒ self
Updates the attributes of this item.
Methods included from ClassMethods
Instance Method Details
#delete ⇒ Object Also known as: destroy
Deletes this item.
62 63 64 65 |
# File 'lib/crm/core/mixins/modifiable.rb', line 62 def delete RestApi.instance.delete(path, nil, if_match_header) nil end |
#update(attributes = {}) ⇒ self
Updates the attributes of this item.
53 54 55 |
# File 'lib/crm/core/mixins/modifiable.rb', line 53 def update(attributes = {}) load_attributes(RestApi.instance.put(path, attributes, if_match_header)) end |