--- !ruby/object:RI::ClassDescription 
attributes: 
- !ruby/object:RI::Attribute 
  comment: 
  name: options
  rw: R
- !ruby/object:RI::Attribute 
  comment: 
  name: url
  rw: R
class_methods: 
- !ruby/object:RI::MethodSummary 
  name: new
comment: 
- !ruby/struct:SM::Flow::P 
  body: A class that can be instantiated for access to a RESTful resource, including authentication.
- !ruby/struct:SM::Flow::P 
  body: "Example:"
- !ruby/struct:SM::Flow::VERB 
  body: "  resource = RestClient::Resource.new('http://some/resource')\n  jpg = resource.get(:accept =&gt; 'image/jpg')\n"
- !ruby/struct:SM::Flow::P 
  body: "With HTTP basic authentication:"
- !ruby/struct:SM::Flow::VERB 
  body: "  resource = RestClient::Resource.new('http://protected/resource', :user =&gt; 'user', :password =&gt; 'password')\n  resource.delete\n"
- !ruby/struct:SM::Flow::P 
  body: "With a timeout (seconds):"
- !ruby/struct:SM::Flow::VERB 
  body: "  RestClient::Resource.new('http://slow', :timeout =&gt; 10)\n"
- !ruby/struct:SM::Flow::P 
  body: "With an open timeout (seconds):"
- !ruby/struct:SM::Flow::VERB 
  body: "  RestClient::Resource.new('http://behindfirewall', :open_timeout =&gt; 10)\n"
- !ruby/struct:SM::Flow::P 
  body: "You can also use resources to share common headers. For headers keys, symbols are converted to strings. Example:"
- !ruby/struct:SM::Flow::VERB 
  body: "  resource = RestClient::Resource.new('http://some/resource', :headers =&gt; { :client_version =&gt; 1 })\n"
- !ruby/struct:SM::Flow::P 
  body: This header will be transported as X-Client-Version (notice the X prefix, capitalization and hyphens)
- !ruby/struct:SM::Flow::P 
  body: "Use the [] syntax to allocate subresources:"
- !ruby/struct:SM::Flow::VERB 
  body: "  site = RestClient::Resource.new('http://example.com', :user =&gt; 'adam', :password =&gt; 'mypasswd')\n  site['posts/1/comments'].post 'Good article.', :content_type =&gt; 'text/plain'\n"
constants: []

full_name: RestClient::Resource
includes: []

instance_methods: 
- !ruby/object:RI::MethodSummary 
  name: "[]"
- !ruby/object:RI::MethodSummary 
  name: delete
- !ruby/object:RI::MethodSummary 
  name: get
- !ruby/object:RI::MethodSummary 
  name: headers
- !ruby/object:RI::MethodSummary 
  name: open_timeout
- !ruby/object:RI::MethodSummary 
  name: password
- !ruby/object:RI::MethodSummary 
  name: post
- !ruby/object:RI::MethodSummary 
  name: put
- !ruby/object:RI::MethodSummary 
  name: timeout
- !ruby/object:RI::MethodSummary 
  name: to_s
- !ruby/object:RI::MethodSummary 
  name: user
name: Resource
superclass: Object
