Class: Glossarist::Designation::LetterSymbol

Inherits:
Symbol show all
Defined in:
lib/glossarist/designation/letter_symbol.rb

Instance Attribute Summary collapse

Attributes inherited from Symbol

#international

Attributes inherited from Base

#designation, #geographical_area

Instance Method Summary collapse

Methods inherited from Base

from_h

Methods included from Utilities::Enum

extended, included

Methods inherited from Model

from_h, #initialize, new, #set_attribute

Constructor Details

This class inherits a constructor from Glossarist::Model

Instance Attribute Details

#languageObject

Returns the value of attribute language.



7
8
9
# File 'lib/glossarist/designation/letter_symbol.rb', line 7

def language
  @language
end

#scriptObject

Returns the value of attribute script.



8
9
10
# File 'lib/glossarist/designation/letter_symbol.rb', line 8

def script
  @script
end

#textObject

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_hObject



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