class Orchestrate::API::ItemResponse
Attributes
location[R]
@return [String] The ‘Location’ of the item.
ref[R]
@return [String] The canonical ‘ref’ of the item.
Public Class Methods
new(faraday_response, client)
click to toggle source
(see Orchestrate::API::Response#initialize)
Calls superclass method
Orchestrate::API::Response::new
# File lib/orchestrate/api/response.rb, line 90 def initialize(faraday_response, client) super(faraday_response, client) @response.on_complete do @location = headers['Content-Location'] || headers['Location'] @ref = headers.fetch('Etag','').gsub('"','').sub(/-gzip$/,'') end end