class AdobeConnect::Response
Public: A response from the Connect API.
Attributes
body[R]
status[R]
Public Class Methods
new(response)
click to toggle source
Public: Create a new AdobeConnect::Response
.
response - A Net::HTTP response.
# File lib/adobe_connect/response.rb, line 12 def initialize(response) @response = response @status = response.code.to_i @body = Nokogiri::XML(response.body) __setobj__(@body) end
Public Instance Methods
fetch(header)
click to toggle source
Public: Fetch the given header's value.
header - The string name of the header to fetch.
Returns a header value as a string.
# File lib/adobe_connect/response.rb, line 25 def fetch(header) @response.fetch(header) end