Skip to content

Instantly share code, notes, and snippets.

@paul
Created November 17, 2008 18:34
Show Gist options
  • Save paul/25856 to your computer and use it in GitHub Desktop.
Save paul/25856 to your computer and use it in GitHub Desktop.
def service_descriptor
resp = http.resource(@service_descriptor_uri, default_headers).get
unless resp.is_not_modified? || (resp.is_success? && !resp.authoritative?)
@service_descriptor = JSON.parse(resp.body)
end
return @service_descriptor
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment