Method: Mints::Contact#update
- Defined in:
- lib/contact.rb
#update(data) ⇒ Object
Update.
Update logged contact attributes.
Parameters
- data
-
(Hash) – It’s the data to update with a session active.
Example
data = {
given_name: 'Given Name',
last_name: 'Last Name'
}
@data = @mints_contact.update(data)
207 208 209 |
# File 'lib/contact.rb', line 207 def update(data) @client.raw('put', '/update', nil, data_transform(data), @contact_v1_url) end |