Sha256: a2e86660c450f611f9c1f7e153224ef128e60de477dc5466349b6a5062980b69

Contents?: true

Size: 305 Bytes

Versions: 6

Compression:

Stored size: 305 Bytes

Contents

module Sappy
  module Responses
    class DisableMonitor < 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/disable_monitor.rb
abcde-sappy-0.1.1 lib/sappy/responses/disable_monitor.rb
sappy-0.1.4 lib/sappy/responses/disable_monitor.rb
sappy-0.1.3 lib/sappy/responses/disable_monitor.rb
sappy-0.1.2 lib/sappy/responses/disable_monitor.rb
sappy-0.1.1 lib/sappy/responses/disable_monitor.rb