class Plivo::Body

Attributes

text[RW]

Public Class Methods

new(text: nil) click to toggle source
# File lib/plivo/interactive.rb, line 47
def initialize(text: nil)
  @text = text
end

Public Instance Methods

to_hash() click to toggle source
# File lib/plivo/interactive.rb, line 51
def to_hash
  {
    text: @text
  }.reject { |_, v| v.nil? }
end