Sha256: deedf2530274e6728f2474d7af88df2484702ca05841f032296d65a397391486

Contents?: true

Size: 342 Bytes

Versions: 2

Compression:

Stored size: 342 Bytes

Contents

module Pipedrive
  module Operations
    module Update
      extend ActiveSupport::Concern

      def update(*args)
        params = args.extract_options!
        params.symbolize_keys!
        id = params.delete(:id) || args[0]
        fail 'id must be provided' unless id
        make_api_call(:put, id, params)
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pipedrive.rb-0.2.0 lib/pipedrive/operations/update.rb
pipedrive.rb-0.1.0 lib/pipedrive/operations/update.rb