Class: Translatomatic::HTTPRequest::Param
- Inherits:
-
Object
- Object
- Translatomatic::HTTPRequest::Param
- Defined in:
- lib/translatomatic/http_request.rb
Overview
Formats a basic string key/value pair for a multipart post
Direct Known Subclasses
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#to_s ⇒ String
Representation of this parameter as it appears within a multipart post request.
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key.
88 89 90 |
# File 'lib/translatomatic/http_request.rb', line 88 def key @key end |
#value ⇒ Object
Returns the value of attribute value.
88 89 90 |
# File 'lib/translatomatic/http_request.rb', line 88 def value @value end |
Instance Method Details
#to_s ⇒ String
Returns Representation of this parameter as it appears within a multipart post request.
92 93 94 |
# File 'lib/translatomatic/http_request.rb', line 92 def to_s return header(header_data) + "\r\n#{value}\r\n" end |