Class: LanguageTool::Resources::Software

Inherits:
Object
  • Object
show all
Defined in:
lib/languagetool/resources/software.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_versionObject (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_dateObject (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

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/languagetool/resources/software.rb', line 4

def name
  @name
end

#statusObject (readonly)

Returns the value of attribute status.



4
5
6
# File 'lib/languagetool/resources/software.rb', line 4

def status
  @status
end

#versionObject (readonly)

Returns the value of attribute version.



4
5
6
# File 'lib/languagetool/resources/software.rb', line 4

def version
  @version
end