class VoiceBase::Request::TextPart
Attributes
body[RW]
name[RW]
Public Class Methods
new(name:, body:)
click to toggle source
# File lib/voicebase/request/text_part.rb, line 5 def initialize(name:, body:) @name = name @body = body end
Public Instance Methods
multipart()
click to toggle source
# File lib/voicebase/request/text_part.rb, line 10 def multipart "Content-Disposition: form-data; name=\"#{CGI::escape(name)}\"\r\n\r\n#{body}\r\n" end