Class: Mumukit::Bridge::Thesaurus
- Inherits:
-
Object
- Object
- Mumukit::Bridge::Thesaurus
- Defined in:
- lib/mumukit/bridge/thesaurus.rb
Instance Attribute Summary collapse
-
#url ⇒ Object
Returns the value of attribute url.
Instance Method Summary collapse
-
#initialize(url) ⇒ Thesaurus
constructor
A new instance of Thesaurus.
- #runners ⇒ Object
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
#url ⇒ Object
Returns the value of attribute url.
4 5 6 |
# File 'lib/mumukit/bridge/thesaurus.rb', line 4 def url @url end |
Instance Method Details
#runners ⇒ Object
10 11 12 |
# File 'lib/mumukit/bridge/thesaurus.rb', line 10 def runners @runners ||= JSON.parse(get('runners'))['runners'] end |