Class: PostmonRuby::Finders::StateFinder
- Defined in:
- lib/postmon_ruby/finders/state_finder.rb
Instance Method Summary collapse
Methods inherited from Finder
Instance Method Details
#arguments_size ⇒ Object
9 10 11 |
# File 'lib/postmon_ruby/finders/state_finder.rb', line 9 def arguments_size 1 end |
#endpoint ⇒ Object
5 6 7 |
# File 'lib/postmon_ruby/finders/state_finder.rb', line 5 def endpoint "/uf" end |
#search(*arguments) ⇒ Object
13 14 15 16 |
# File 'lib/postmon_ruby/finders/state_finder.rb', line 13 def search(*arguments) arguments.flatten! PostmonRuby::State.new( PostmonRuby::Http.get(self.arguments_uri(arguments)) ) end |