Class: Messenger::Elements::Text
- Inherits:
-
Object
- Object
- Messenger::Elements::Text
- Defined in:
- lib/messenger/components/elements/text.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
- #build ⇒ Object
-
#initialize(text:) ⇒ Text
constructor
A new instance of Text.
Constructor Details
#initialize(text:) ⇒ Text
Returns a new instance of Text.
6 7 8 |
# File 'lib/messenger/components/elements/text.rb', line 6 def initialize(text:) @text = text end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/messenger/components/elements/text.rb', line 4 def text @text end |
Instance Method Details
#build ⇒ Object
10 11 12 |
# File 'lib/messenger/components/elements/text.rb', line 10 def build instance_values end |