Sha256: 3726103b4f393af882e8f0aa97f41751dd43d7a2847e8a9c71c658bc8f5daced

Contents?: true

Size: 340 Bytes

Versions: 4

Compression:

Stored size: 340 Bytes

Contents

module PostmonRuby
  module Finders
    class StateFinder < PostmonRuby::Finders::Finder
      def endpoint
        "/uf"
      end

      def arguments_size
        1
      end

      def search(*arguments)
        arguments.flatten!
        PostmonRuby::State.new( HTTParty.get(self.arguments_uri(arguments)) )
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
postmon_ruby-2.1.3 lib/postmon_ruby/finders/state_finder.rb
postmon_ruby-2.1.2 lib/postmon_ruby/finders/state_finder.rb
postmon_ruby-2.1.1 lib/postmon_ruby/finders/state_finder.rb
postmon_ruby-2.1.0 lib/postmon_ruby/finders/state_finder.rb