Class: Odca::Overlays::InformationOverlay

Inherits:
Object
  • Object
show all
Extended by:
Odca::Overlay
Defined in:
lib/odca/overlays/information_overlay.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Odca::Overlay

extended

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

#languageObject (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_hObject



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