Class: Urban::Web

Inherits:
Object
  • Object
show all
Defined in:
lib/urban/web.rb

Defined Under Namespace

Classes: Response

Instance Method Summary collapse

Instance Method Details

#randomObject



12
13
14
# File 'lib/urban/web.rb', line 12

def random
  build_response fetch :random
end

#search(phrase) ⇒ Object



8
9
10
# File 'lib/urban/web.rb', line 8

def search(phrase)
  build_response fetch :define, :term => phrase
end