Module: Pickpoint::Transport

Defined in:
lib/pickpoint/transport.rb

Defined Under Namespace

Classes: Client, RequestOpts

Constant Summary collapse

ON_THROW =
:throw
ON_EMPTY =
:empty
STATUS_TEXT =
{
  400 => "Bad Request",
  401 => "Unauthorized",
  403 => "Forbidden",
  404 => "Not Found",
  409 => "Conflict",
  500 => "Internal Server Error",
  502 => "Bad Gateway",
  503 => "Service Unavailable"
}.freeze

Class Method Summary collapse

Class Method Details

.trim_slash(s) ⇒ Object



10
11
12
# File 'lib/pickpoint/transport.rb', line 10

def trim_slash(s)
  s.to_s.sub(%r{/+\z}, "")
end