Class: PostmonRuby::Finders::StateFinder

Inherits:
Finder
  • Object
show all
Defined in:
lib/postmon_ruby/finders/state_finder.rb

Instance Method Summary collapse

Methods inherited from Finder

#arguments_uri

Instance Method Details

#arguments_sizeObject



8
9
10
# File 'lib/postmon_ruby/finders/state_finder.rb', line 8

def arguments_size
  1
end

#endpointObject



4
5
6
# File 'lib/postmon_ruby/finders/state_finder.rb', line 4

def endpoint
  "/uf"
end

#search(*arguments) ⇒ Object



12
13
14
15
# File 'lib/postmon_ruby/finders/state_finder.rb', line 12

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