Class: ActiveResource::Base

Inherits:
Object show all
Defined in:
lib/active_resource/base_ext.rb

Direct Known Subclasses

ShopifyAPI::Base

Class Method Summary collapse

Class Method Details

.delete(id, options = {}) ⇒ Object



16
17
18
# File 'lib/active_resource/base_ext.rb', line 16

def self.delete(id, options = {})
  connection.delete(element_path(id, options), headers)
end

.headersObject

Backported from ActiveResource master branch



5
6
7
8
9
10
11
12
13
# File 'lib/active_resource/base_ext.rb', line 5

def self.headers
  @headers ||= {}

  if superclass != Object && superclass.headers
    @headers = superclass.headers.merge(@headers)
  else
    @headers
  end
end