Class: Mumukit::Bridge::Thesaurus

Inherits:
Object
  • Object
show all
Defined in:
lib/mumukit/bridge/thesaurus.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Thesaurus

Returns a new instance of Thesaurus.



6
7
8
# File 'lib/mumukit/bridge/thesaurus.rb', line 6

def initialize(url)
  @url = url
end

Instance Attribute Details

#urlObject

Returns the value of attribute url.



4
5
6
# File 'lib/mumukit/bridge/thesaurus.rb', line 4

def url
  @url
end

Instance Method Details

#runnersObject



10
11
12
# File 'lib/mumukit/bridge/thesaurus.rb', line 10

def runners
  @runners ||= JSON.parse(get('runners'))['runners']
end