Class: Glossarist::Designation::LetterSymbol
- Defined in:
- lib/glossarist/designation/letter_symbol.rb
Instance Attribute Summary collapse
-
#language ⇒ Object
Returns the value of attribute language.
-
#script ⇒ Object
Returns the value of attribute script.
-
#text ⇒ Object
Returns the value of attribute text.
Attributes inherited from Symbol
Attributes inherited from Base
#designation, #geographical_area
Instance Method Summary collapse
Methods inherited from Base
Methods included from Utilities::Enum
Methods inherited from Model
from_h, #initialize, new, #set_attribute
Constructor Details
This class inherits a constructor from Glossarist::Model
Instance Attribute Details
#language ⇒ Object
Returns the value of attribute language.
7 8 9 |
# File 'lib/glossarist/designation/letter_symbol.rb', line 7 def language @language end |
#script ⇒ Object
Returns the value of attribute script.
8 9 10 |
# File 'lib/glossarist/designation/letter_symbol.rb', line 8 def script @script end |
#text ⇒ Object
Returns the value of attribute text.
6 7 8 |
# File 'lib/glossarist/designation/letter_symbol.rb', line 6 def text @text end |
Instance Method Details
#to_h ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/glossarist/designation/letter_symbol.rb', line 10 def to_h super.merge( "text" => text, "language" => language, "script" => script, ) end |