Class: Odca::Overlays::InformationOverlay
- Inherits:
-
Object
- Object
- Odca::Overlays::InformationOverlay
- Extended by:
- Odca::Overlay
- Defined in:
- lib/odca/overlays/information_overlay.rb
Instance Attribute Summary collapse
-
#language ⇒ Object
readonly
Returns the value of attribute language.
Instance Method Summary collapse
-
#initialize(language:) ⇒ InformationOverlay
constructor
A new instance of InformationOverlay.
- #to_h ⇒ Object
Methods included from Odca::Overlay
Constructor Details
#initialize(language:) ⇒ InformationOverlay
Returns a new instance of InformationOverlay.
9 10 11 12 |
# File 'lib/odca/overlays/information_overlay.rb', line 9 def initialize(language:) _initialize @language = language end |
Instance Attribute Details
#language ⇒ Object (readonly)
Returns the value of attribute language.
7 8 9 |
# File 'lib/odca/overlays/information_overlay.rb', line 7 def language @language end |
Instance Method Details
#to_h ⇒ Object
14 15 16 17 18 19 |
# File 'lib/odca/overlays/information_overlay.rb', line 14 def to_h { language: language, attr_information: attr_values } end |