Method: QstClient#get_last_id

Defined in:
lib/qst_client.rb

#get_last_idObject

Returns the response of requesting the last id received by the server.



35
36
37
38
39
40
41
# File 'lib/qst_client.rb', line 35

def get_last_id
  response = self.class.head("#{@url}/incoming", :basic_auth => @auth)
  raise QstClient::Exception.new response unless (200 ... 400).include? response.code
  etag = response.headers['etag']
  etag = etag.first if etag.kind_of? Array
  etag
end