Class: Datamuse

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/rubymuse/datamuse.rb

Class Method Summary collapse

Class Method Details

.sug(**kwargs) ⇒ Object



13
14
15
16
# File 'lib/rubymuse/datamuse.rb', line 13

def self.sug(**kwargs)
  resp = get('/sug', query: kwargs)
  resp.parsed_response
end

.words(**kwargs) ⇒ Object



8
9
10
11
# File 'lib/rubymuse/datamuse.rb', line 8

def self.words(**kwargs)
  resp = get('/words', query: kwargs)
  resp.parsed_response
end