Class: Param
- Inherits:
-
Object
- Object
- Param
- Defined in:
- lib/google-picasa/multipartpost.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) ⇒ Param
constructor
A new instance of Param.
- #to_multipart ⇒ Object
Constructor Details
#initialize(k, v) ⇒ Param
Returns a new instance of Param.
13 14 15 16 |
# File 'lib/google-picasa/multipartpost.rb', line 13 def initialize( k, v ) @k = k @v = v end |
Instance Attribute Details
#k ⇒ Object
Returns the value of attribute k.
12 13 14 |
# File 'lib/google-picasa/multipartpost.rb', line 12 def k @k end |
#v ⇒ Object
Returns the value of attribute v.
12 13 14 |
# File 'lib/google-picasa/multipartpost.rb', line 12 def v @v end |
Instance Method Details
#to_multipart ⇒ Object
18 19 20 |
# File 'lib/google-picasa/multipartpost.rb', line 18 def to_multipart return "Content-Disposition: form-data; name=\"#{CGI::escape(k)}\"\r\n\r\n#{v}\r\n" end |