Module: Beslist::API::Connection::Requests
- Included in:
- Beslist::API::Connection
- Defined in:
- lib/beslist/connection/requests.rb
Instance Method Summary collapse
Instance Method Details
#request(options = {}) ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/beslist/connection/requests.rb', line 8 def request( = {}) response = yield status = response.status.to_i case status when 401 else MultiXml.parse(response.body) end end |