Class: Plivo::Footer

Inherits:
Object
  • Object
show all
Defined in:
lib/plivo/interactive.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#textObject

Returns the value of attribute text.



59
60
61
# File 'lib/plivo/interactive.rb', line 59

def text
  @text
end

Instance Method Details

#to_hashObject



65
66
67
68
69
# File 'lib/plivo/interactive.rb', line 65

def to_hash
  {
    text: @text
  }.reject { |_, v| v.nil? }
end