class Stella::RequestTemplate
Attributes
callback[RW]
Public Class Methods
new(meth=nil, uri=nil, opts={}, &definition)
click to toggle source
# File lib/stella/testplan.rb, line 321 def initialize(meth=nil, uri=nil, opts={}, &definition) @protocol = :http @http_method, @uri = meth, uri opts.each_pair { |n,v| self.send("#{n}=", v) if self.class.has_field?(n) } @params ||= {} @headers ||= {} @follow ||= false @callback = definition end
Public Instance Methods
freeze()
click to toggle source
Calls superclass method
# File lib/stella/testplan.rb, line 339 def freeze return if frozen? @id &&= Gibbler::Digest.new(@id || self.digest) super self end
postprocess()
click to toggle source
# File lib/stella/testplan.rb, line 330 def postprocess @id &&= Gibbler::Digest.new(@id) unless response_handler.nil? response_handler.keys.each do |range| proc = response_handler[range] response_handler[range] = Proc.from_string(proc) if proc.kind_of?(ProcString) end end end