module UrbanDict
Constants
- ENDPOINT
- VERSION
Public Class Methods
define(word = nil)
click to toggle source
# File lib/urban_dict.rb, line 41 def self.define(word = nil) if word.nil? random else UrbanResponse.new( [ENDPOINT, "define?term=", word].join ).get_response end end
random()
click to toggle source
# File lib/urban_dict.rb, line 49 def self.random UrbanResponse.new( [ENDPOINT, "random"].join ).get_response end