Class: ThatLanguage::Client::Query
- Inherits:
-
Object
- Object
- ThatLanguage::Client::Query
- Defined in:
- lib/that_language/client/query.rb
Direct Known Subclasses
AvailableQuery, DetailsQuery, DetectQuery, LanguageCodeQuery, LanguageQuery, VersionQuery
Instance Attribute Summary collapse
-
#text ⇒ Object
readonly
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text:, client: Client.current) ⇒ Query
constructor
A new instance of Query.
- #to_h ⇒ Object
Constructor Details
Instance Attribute Details
#text ⇒ Object (readonly)
Returns the value of attribute text.
7 8 9 |
# File 'lib/that_language/client/query.rb', line 7 def text @text end |
Instance Method Details
#to_h ⇒ Object
14 15 16 |
# File 'lib/that_language/client/query.rb', line 14 def to_h json end |