Class: Plivo::Footer
- Inherits:
-
Object
- Object
- Plivo::Footer
- Defined in:
- lib/plivo/interactive.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text: nil) ⇒ Footer
constructor
A new instance of Footer.
- #to_hash ⇒ Object
Constructor Details
#initialize(text: nil) ⇒ Footer
Returns a new instance of Footer.
61 62 63 |
# File 'lib/plivo/interactive.rb', line 61 def initialize(text: nil) @text = text end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
59 60 61 |
# File 'lib/plivo/interactive.rb', line 59 def text @text end |
Instance Method Details
#to_hash ⇒ Object
65 66 67 68 69 |
# File 'lib/plivo/interactive.rb', line 65 def to_hash { text: @text }.reject { |_, v| v.nil? } end |