Class: VoiceBase::V2::Client::StringParam
- Inherits:
-
Object
- Object
- VoiceBase::V2::Client::StringParam
- Defined in:
- lib/voicebase/v2/client.rb
Instance Attribute Summary collapse
-
#k ⇒ Object
Returns the value of attribute k.
-
#v ⇒ Object
Returns the value of attribute v.
Instance Method Summary collapse
-
#initialize(k, v) ⇒ StringParam
constructor
A new instance of StringParam.
- #to_multipart ⇒ Object
Constructor Details
#initialize(k, v) ⇒ StringParam
Returns a new instance of StringParam.
193 194 195 |
# File 'lib/voicebase/v2/client.rb', line 193 def initialize(k, v) @k, @v = k, v end |
Instance Attribute Details
#k ⇒ Object
Returns the value of attribute k.
191 192 193 |
# File 'lib/voicebase/v2/client.rb', line 191 def k @k end |
#v ⇒ Object
Returns the value of attribute v.
191 192 193 |
# File 'lib/voicebase/v2/client.rb', line 191 def v @v end |
Instance Method Details
#to_multipart ⇒ Object
197 198 199 |
# File 'lib/voicebase/v2/client.rb', line 197 def to_multipart return "Content-Disposition: form-data; name=\"#{CGI::escape(k.to_s)}\"\r\n\r\n#{v}\r\n" end |