Class: AthenaResource::Base

Inherits:
ActiveResource::Base
  • Object
show all
Includes:
AuthType, Callbacks, Encoding, Finders, Headers
Defined in:
lib/athena_resource/base.rb

Class Method Summary collapse

Class Method Details

.patch(records, attributes) ⇒ Object



10
11
12
13
# File 'lib/athena_resource/base.rb', line 10

def patch(records, attributes)
  response = connection.put(self.site.path + self.collection_name + "/patch/#{records.collect(&:id).join(",")}", attributes.to_json, self.headers)
  format.decode(response.body).map{ |attributes| new(attributes) }
end