Class: LanguageTool::Resources::RuleCategory

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json) ⇒ RuleCategory

Returns a new instance of RuleCategory.



6
7
8
9
# File 'lib/languagetool/resources/rule_category.rb', line 6

def initialize(json)
  @id = json['id']
  @name = json['name']
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



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

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



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

def name
  @name
end