Skip to content

Instantly share code, notes, and snippets.

@apeiros
Created January 13, 2015 21:26
Show Gist options
  • Save apeiros/49523d169618e74c91cc to your computer and use it in GitHub Desktop.
Save apeiros/49523d169618e74c91cc to your computer and use it in GitHub Desktop.
Jacob::Request.rack_env({"PATH_INFO" => "/CheatSheet/Api/V1/CheatSheet:1", "HTTP_ACCEPT" => "application/json"})
# => #<Jacob::Request:0x007fb9b1b785f0
# @agent_type=nil,
# @api=
# #<Jacob::Api:0x007fb9b1b78528
# @endpoints=
# [#<struct Jacob::Api::EndPoint name="::CheatSheet", module=CheatSheet, id=nil, params=nil>,
# #<struct Jacob::Api::EndPoint name="::CheatSheet::Api", module=CheatSheet::Api, id=nil, params=nil>,
# #<struct Jacob::Api::EndPoint name="::CheatSheet::Api::V1", module=CheatSheet::Api::V1, id=nil, params=nil>,
# #<struct Jacob::Api::EndPoint name="::CheatSheet::Api::V1::CheatSheet", module=CheatSheet::Api::V1::CheatSheet, id="1", params=nil>],
# @request=#<Jacob::Request:0x007fb9b1b785f0 ...>>,
# @package="CheatSheet",
# @query=nil,
# @rack_env={"PATH_INFO"=>"/CheatSheet/Api/V1/CheatSheet:1", "HTTP_ACCEPT"=>"application/json"},
# @request_type=:api>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment