Class: Urban::Dictionary
- Inherits:
-
Object
- Object
- Urban::Dictionary
- Defined in:
- lib/urban/dictionary.rb
Defined Under Namespace
Classes: Entry
Instance Attribute Summary collapse
Instance Method Summary collapse
Instance Attribute Details
Instance Method Details
#random ⇒ Object
10 11 12 |
# File 'lib/urban/dictionary.rb', line 10 def random process(web_service.random) end |
#search(phrase) ⇒ Object
14 15 16 |
# File 'lib/urban/dictionary.rb', line 14 def search(phrase) process(web_service.search(phrase)) end |