class PostmonRuby::Finders::CityFinder
Public Instance Methods
arguments_size()
click to toggle source
# File lib/postmon_ruby/finders/city_finder.rb, line 9 def arguments_size 2 end
endpoint()
click to toggle source
# File lib/postmon_ruby/finders/city_finder.rb, line 5 def endpoint "/cidade" end
search(*arguments)
click to toggle source
# File lib/postmon_ruby/finders/city_finder.rb, line 13 def search(*arguments) arguments.flatten! PostmonRuby::City.new( PostmonRuby::Http.get(self.arguments_uri(arguments)) ) end