Sha256: 5d3d9db863db5d1bc43e6ec5b5ca0b6366dccb2d5fd0759a3afe0884f05ae47e

Contents?: true

Size: 206 Bytes

Versions: 3

Compression:

Stored size: 206 Bytes

Contents

module Sappy
  module Responses
    class AddMonitor < Response
      attr_reader :id

      def success
        node = first_xpath('//monitor')
        @id = node && node['id']
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sappy-0.1.7 lib/sappy/responses/add_monitor.rb
sappy-0.1.6 lib/sappy/responses/add_monitor.rb
sappy-0.1.5 lib/sappy/responses/add_monitor.rb