Module: Randomword
- Defined in:
- lib/randomword.rb,
lib/randomword/version.rb
Constant Summary collapse
- API_PATH =
"http://randomword.setgetgo.com/get.php"- VERSION =
"0.1.0"
Class Method Summary collapse
Class Method Details
.get(length = nil) ⇒ Object
8 9 10 11 12 |
# File 'lib/randomword.rb', line 8 def self.get(length = nil) url = API_PATH url += "?len=#{length}" if length Net::HTTP.get(URI.parse(url)) end |