Method: Frodo::Concerns::API#update
- Defined in:
- lib/frodo/concerns/api.rb
#update(*args) ⇒ Object
Public: Update a record.
entity_set - The set the entity belongs to attrs - Hash of attributes to set on the record.
Examples
# Update the lead with id '073ca9c8-2a41-e911-a81d-000d3a1d5a0b'
client.update('leads', "leadid": '073ca9c8-2a41-e911-a81d-000d3a1d5a0b', Name: 'Whizbang Corp')
Returns true if the entity was successfully updated. Returns false if there was an error.
134 135 136 137 138 |
# File 'lib/frodo/concerns/api.rb', line 134 def update(*args) update!(*args) rescue *exceptions false end |