class CubaAPI::Response
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/cuba_api.rb, line 36 def self.new Thread.current[ :cuba_api_response ] ||= super end
new( status = 404, headers = { "Content-Type" => "text/plain; charset=utf-8" } )
click to toggle source
Calls superclass method
# File lib/cuba_api.rb, line 40 def initialize( status = 404, headers = { "Content-Type" => "text/plain; charset=utf-8" } ) super end
Public Instance Methods
finish()
click to toggle source
Calls superclass method
# File lib/cuba_api.rb, line 45 def finish Thread.current[ :cuba_api_response ] = nil super end