Sha256: 01948de693855252c783bd2c71566f3ee417dc831cfa69d315cde39bf91c6ed4

Contents?: true

Size: 270 Bytes

Versions: 3

Compression:

Stored size: 270 Bytes

Contents

module Paymill
  module Operations
    module Update
      def update_attributes(attributes)
        response = Paymill.request(:put, "#{self.class.name.split("::").last.downcase}s/#{id}", attributes)
        set_attributes(response["data"])
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
paymill-0.2.2 lib/paymill/operations/update.rb
paymill-0.2.1 lib/paymill/operations/update.rb
paymill-0.2.0 lib/paymill/operations/update.rb