Class: Gem::Commands::InaboxCommand::Multipart::Param

Inherits:
Object
  • Object
show all
Defined in:
lib/rubygems/commands/inabox_command.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(k, v) ⇒ Param

Returns a new instance of Param.



120
121
122
123
# File 'lib/rubygems/commands/inabox_command.rb', line 120

def initialize( k, v )
  @k = k
  @v = v
end

Instance Attribute Details

#kObject

Returns the value of attribute k.



119
120
121
# File 'lib/rubygems/commands/inabox_command.rb', line 119

def k
  @k
end

#vObject

Returns the value of attribute v.



119
120
121
# File 'lib/rubygems/commands/inabox_command.rb', line 119

def v
  @v
end

Instance Method Details

#to_multipartObject



125
126
127
# File 'lib/rubygems/commands/inabox_command.rb', line 125

def to_multipart
  return "Content-Disposition: form-data; name=\"#{k}\"\r\n\r\n#{v}\r\n"
end