Class: AthenaResource::Base
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- AthenaResource::Base
- 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 |