Class: Rlocu::Menu::SectionText

Inherits:
Object
  • Object
show all
Defined in:
lib/rlocu/menu.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(section_text_hash) ⇒ SectionText

Returns a new instance of SectionText.



77
78
79
80
# File 'lib/rlocu/menu.rb', line 77

def initialize(section_text_hash)
  @type = section_text_hash['type']
  @text = section_text_hash['text']
end

Instance Attribute Details

#textObject (readonly)

Returns the value of attribute text.



76
77
78
# File 'lib/rlocu/menu.rb', line 76

def text
  @text
end

#typeObject (readonly)

Returns the value of attribute type.



76
77
78
# File 'lib/rlocu/menu.rb', line 76

def type
  @type
end

Instance Method Details

#to_sObject



82
83
84
# File 'lib/rlocu/menu.rb', line 82

def to_s
  @text
end