Sha256: 7e775e71a40aceb57ab9e3e3eb48324b006fbade1e58f84ac6d99137bb587209

Contents?: true

Size: 304 Bytes

Versions: 6

Compression:

Stored size: 304 Bytes

Contents

module Sappy
  module Responses
    class RemoveMonitor < Response
      def success(hash)
      end

      def failure(code, message)
        case code
        when "WRONG_DATA"
          raise ArgumentError, "You didn't provide a correct monitor id: #{message}"
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
abcde-sappy-0.1.0 lib/sappy/responses/remove_monitor.rb
abcde-sappy-0.1.1 lib/sappy/responses/remove_monitor.rb
sappy-0.1.4 lib/sappy/responses/remove_monitor.rb
sappy-0.1.3 lib/sappy/responses/remove_monitor.rb
sappy-0.1.2 lib/sappy/responses/remove_monitor.rb
sappy-0.1.1 lib/sappy/responses/remove_monitor.rb