module Beslist::API::Connection::Requests

Public Instance Methods

request(options = {}) { || ... } click to toggle source
# File lib/beslist/connection/requests.rb, line 8
def request(options = {})
  response = yield
  status = response.status.to_i
  case status
  when 401
  else
    MultiXml.parse(response.body)
  end
end