Class: LanguageTool::Resources::Software
- Inherits:
-
Object
- Object
- LanguageTool::Resources::Software
- Defined in:
- lib/languagetool/resources/software.rb
Instance Attribute Summary collapse
-
#api_version ⇒ Object
readonly
Returns the value of attribute api_version.
-
#build_date ⇒ Object
readonly
Returns the value of attribute build_date.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(json) ⇒ Software
constructor
A new instance of Software.
Constructor Details
#initialize(json) ⇒ Software
Returns a new instance of Software.
6 7 8 9 10 11 12 |
# File 'lib/languagetool/resources/software.rb', line 6 def initialize(json) @name = json['name'] @version = json['version'] @build_date = json['buildDate'] @api_version = json['apiVersion'] @status = json['status'] end |
Instance Attribute Details
#api_version ⇒ Object (readonly)
Returns the value of attribute api_version.
4 5 6 |
# File 'lib/languagetool/resources/software.rb', line 4 def api_version @api_version end |
#build_date ⇒ Object (readonly)
Returns the value of attribute build_date.
4 5 6 |
# File 'lib/languagetool/resources/software.rb', line 4 def build_date @build_date end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/languagetool/resources/software.rb', line 4 def name @name end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
4 5 6 |
# File 'lib/languagetool/resources/software.rb', line 4 def status @status end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
4 5 6 |
# File 'lib/languagetool/resources/software.rb', line 4 def version @version end |