lib/promisepay/models/company.rb
# Update the attributes of an item.
#
# @see https://reference.promisepay.com/#update-item
#
# @param attributes [Hash] Item's attributes to be updated.
#
# @return [self]
Update the attributes of an item.
Update the attributes of an item .
def update(attributes)
      response = JSON.parse(@client.patch("companies/#{send(:id)}", attributes).body)
      @attributes = response['companies']
      self
    end
def update ( attributes ) response = JSON . parse ( @client . patch ( "companies/#{send(:id)}" , attributes ) . body ) @attributes = response [ 'companies' ] self end
Update the attributes of an item.
Update the attributes of an item .
None
self
attributes
Item's attributes to be updated.
Item ' s attributes to be updated .
see
None