Class: LanguageTool::API
- Inherits:
-
Object
- Object
- LanguageTool::API
- Defined in:
- lib/languagetool/api.rb
Constant Summary collapse
- DEFAULT_OPTIONS =
{ base_uri: 'https://languagetool.org/api/v2' }.freeze
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ API
constructor
A new instance of API.
Constructor Details
#initialize(options = {}) ⇒ API
Returns a new instance of API.
9 10 11 |
# File 'lib/languagetool/api.rb', line 9 def initialize( = {}) @options = DEFAULT_OPTIONS.merge() end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'lib/languagetool/api.rb', line 3 def @options end |