module Randomword
Constants
- API_PATH
- VERSION
Public Class Methods
get(length = nil)
click to toggle source
# 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