Class: Glossarist::Designation::GraphicalSymbol

Inherits:
Symbol show all
Defined in:
lib/glossarist/designation/graphical_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

#imageObject

Returns the value of attribute image.



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

def image
  @image
end

#textObject

Returns the value of attribute text.



6
7
8
# File 'lib/glossarist/designation/graphical_symbol.rb', line 6

def text
  @text
end

Instance Method Details

#to_hObject



9
10
11
12
13
14
# File 'lib/glossarist/designation/graphical_symbol.rb', line 9

def to_h
  super.merge(
    "text" => text,
    "image" => image,
  )
end