--- !ruby/object:RI::ClassDescription 
attributes: 
- !ruby/object:RI::Attribute 
  comment: 
  name: code_is
  rw: RW
- !ruby/object:RI::Attribute 
  comment: 
  name: code_is_not
  rw: RW
- !ruby/object:RI::Attribute 
  comment: 
  name: host
  rw: RW
- !ruby/object:RI::Attribute 
  comment: 
  name: path
  rw: RW
- !ruby/object:RI::Attribute 
  comment: 
  name: port
  rw: RW
- !ruby/object:RI::Attribute 
  comment: 
  name: timeout
  rw: RW
- !ruby/object:RI::Attribute 
  comment: 
  name: times
  rw: RW
class_methods: 
- !ruby/object:RI::MethodSummary 
  name: new
comment: 
- !ruby/struct:SM::Flow::P 
  body: "Condition Symbol :http_response_code Type: Poll"
- !ruby/struct:SM::Flow::P 
  body: Trigger based on the response from an HTTP request.
- !ruby/struct:SM::Flow::P 
  body: Paramaters
- !ruby/struct:SM::Flow::VERB 
  body: "  Required\n    <tt>host</tt> is the hostname to connect [required]\n    --one of code_is or code_is_not--\n    <tt>code_is</tt> trigger if the response code IS one of these\n              e.g. 500 or '500' or [404, 500] or %w{404 500}\n    <tt>code_is_not</tt> trigger if the response code IS NOT one of these\n                  e.g. 200 or '200' or [200, 302] or %w{200 302}\n Optional\n    <tt>port</tt> is the port to connect (default 80)\n    <tt>path</tt> is the path to connect (default '/')\n    <tt>times</tt> is the number of times after which to trigger (default 1)\n            e.g. 3 (times in a row) or [3, 5] (three out of fives times)\n    <tt>timeout</tt> is the time to wait for a connection (default 60.seconds)\n"
- !ruby/struct:SM::Flow::P 
  body: Examples
- !ruby/struct:SM::Flow::P 
  body: "Trigger if the response code from www.example.com/foo/bar is not a 200 (or if the connection is refused or times out:"
- !ruby/struct:SM::Flow::VERB 
  body: "  on.condition(:http_response_code) do |c|\n    c.host = 'www.example.com'\n    c.path = '/foo/bar'\n    c.code_is_not = 200\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: "Trigger if the response code is a 404 or a 500 (will not be triggered by a connection refusal or timeout):"
- !ruby/struct:SM::Flow::VERB 
  body: "  on.condition(:http_response_code) do |c|\n    c.host = 'www.example.com'\n    c.path = '/foo/bar'\n    c.code_is = [404, 500]\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: "Trigger if the response code is not a 200 five times in a row:"
- !ruby/struct:SM::Flow::VERB 
  body: "  on.condition(:http_response_code) do |c|\n    c.host = 'www.example.com'\n    c.path = '/foo/bar'\n    c.code_is_not = 200\n    c.times = 5\n  end\n"
- !ruby/struct:SM::Flow::P 
  body: "Trigger if the response code is not a 200 or does not respond within 10 seconds:"
- !ruby/struct:SM::Flow::VERB 
  body: "  on.condition(:http_response_code) do |c|\n    c.host = 'www.example.com'\n    c.path = '/foo/bar'\n    c.code_is_not = 200\n    c.timeout = 10\n  end\n"
constants: []

full_name: God::Conditions::HttpResponseCode
includes: []

instance_methods: 
- !ruby/object:RI::MethodSummary 
  name: prepare
- !ruby/object:RI::MethodSummary 
  name: reset
- !ruby/object:RI::MethodSummary 
  name: test
- !ruby/object:RI::MethodSummary 
  name: valid?
name: HttpResponseCode
superclass: PollCondition
