Class: Glossarist::Designation::GraphicalSymbol
- Defined in:
- lib/glossarist/designation/graphical_symbol.rb
Instance Attribute Summary collapse
-
#image ⇒ Object
Returns the value of attribute image.
-
#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
#image ⇒ Object
Returns the value of attribute image.
7 8 9 |
# File 'lib/glossarist/designation/graphical_symbol.rb', line 7 def image @image end |
#text ⇒ Object
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_h ⇒ Object
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 |