Class: Gem::Commands::InaboxsecureCommand::Multipart::Param
- Inherits:
-
Object
- Object
- Gem::Commands::InaboxsecureCommand::Multipart::Param
- Defined in:
- lib/rubygems/commands/inaboxsecure_command.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.
122 123 124 125 |
# File 'lib/rubygems/commands/inaboxsecure_command.rb', line 122 def initialize( k, v ) @k = k @v = v end |
Instance Attribute Details
#k ⇒ Object
Returns the value of attribute k.
121 122 123 |
# File 'lib/rubygems/commands/inaboxsecure_command.rb', line 121 def k @k end |
#v ⇒ Object
Returns the value of attribute v.
121 122 123 |
# File 'lib/rubygems/commands/inaboxsecure_command.rb', line 121 def v @v end |
Instance Method Details
#to_multipart ⇒ Object
127 128 129 |
# File 'lib/rubygems/commands/inaboxsecure_command.rb', line 127 def to_multipart return "Content-Disposition: form-data; name=\"#{k}\"\r\n\r\n#{v}\r\n" end |