Class: Glossarist::Designation::Symbol

Inherits:
Base
  • Object
show all
Defined in:
lib/glossarist/designation/symbol.rb

Direct Known Subclasses

GraphicalSymbol, LetterSymbol

Instance Attribute Summary collapse

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

#internationalObject

Returns the value of attribute international.



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

def international
  @international
end

Instance Method Details

#to_hObject



10
11
12
13
14
15
16
17
18
# File 'lib/glossarist/designation/symbol.rb', line 10

def to_h
  {
    "type" => Glossarist::Designation::SERIALIZED_TYPES[self.class],
    "normative_status" => normative_status,
    "geographical_area" => geographical_area,
    "designation" => designation,
    "international" => international,
  }.compact
end