Class: Glossarist::Designation::Abbreviation
- Inherits:
-
Expression
- Object
- Model
- Base
- Expression
- Glossarist::Designation::Abbreviation
- Includes:
- Utilities::Enum
- Defined in:
- lib/glossarist/designation/abbreviation.rb
Instance Attribute Summary collapse
-
#international ⇒ Object
Returns the value of attribute international.
Attributes inherited from Expression
#grammar_info, #prefix, #usage_info
Attributes inherited from Base
#designation, #geographical_area
Instance Method Summary collapse
Methods included from Utilities::Enum
Methods inherited from Expression
Methods inherited from Base
Methods inherited from Model
from_h, #initialize, new, #set_attribute, #snake_case
Constructor Details
This class inherits a constructor from Glossarist::Model
Instance Attribute Details
#international ⇒ Object
Returns the value of attribute international.
13 14 15 |
# File 'lib/glossarist/designation/abbreviation.rb', line 13 def international @international end |
Instance Method Details
#to_h ⇒ Object
15 16 17 18 19 20 21 22 23 24 |
# File 'lib/glossarist/designation/abbreviation.rb', line 15 def to_h type_hash = { "type" => "abbreviation", "international" => international, } type_hash[type.to_s] = true if type super().merge(type_hash).compact end |