Sha256: e12a913400e98f0304e732d9861c4eedf8437e73a0f59fcf15c190086662ef80

Contents?: true

Size: 298 Bytes

Versions: 6

Compression:

Stored size: 298 Bytes

Contents

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

      def failure(code, message)
        case code
        when "WRONG_DATA"
          raise ArgumentError, "You didn't provide the correct data: #{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/edit_monitor.rb
abcde-sappy-0.1.1 lib/sappy/responses/edit_monitor.rb
sappy-0.1.4 lib/sappy/responses/edit_monitor.rb
sappy-0.1.3 lib/sappy/responses/edit_monitor.rb
sappy-0.1.2 lib/sappy/responses/edit_monitor.rb
sappy-0.1.1 lib/sappy/responses/edit_monitor.rb