class OneOne::BaseResource

Public Instance Methods

shared_handlers(context) click to toggle source

TODO: find a way to get this working

# File lib/one_one/resources/base_resource.rb, line 4
def shared_handlers(context)
  proc do
    default_handler do |response|
      fail "Unexpected response status #{response.status}... #{response.body}"
    end
  end.call(context)
end