Class: ThatLanguage::Client::AvailableQuery

Inherits:
Query
  • Object
show all
Defined in:
lib/that_language/client/available_query.rb

Instance Attribute Summary

Attributes inherited from Query

#text

Instance Method Summary collapse

Methods inherited from Query

#to_h

Constructor Details

#initialize(client: Client.current) ⇒ AvailableQuery

FIXME: do not pass text to super



7
8
9
# File 'lib/that_language/client/available_query.rb', line 7

def initialize(client: Client.current)
  super(text: "", client: client)
end

Instance Method Details

#availableObject



11
12
13
# File 'lib/that_language/client/available_query.rb', line 11

def available
  json["available"]
end