Class: Hurley::Multipart::ParamPart
- Inherits:
-
Object
- Object
- Hurley::Multipart::ParamPart
- Includes:
- Part
- Defined in:
- lib/hurley/multipart.rb
Instance Method Summary collapse
-
#initialize(boundary, name, value, header) ⇒ ParamPart
constructor
A new instance of ParamPart.
- #length ⇒ Object
Methods included from Part
Constructor Details
#initialize(boundary, name, value, header) ⇒ ParamPart
Returns a new instance of ParamPart.
81 82 83 84 |
# File 'lib/hurley/multipart.rb', line 81 def initialize(boundary, name, value, header) @part = build_part(boundary, name, value, header) @io = StringIO.new(@part) end |
Instance Method Details
#length ⇒ Object
86 87 88 |
# File 'lib/hurley/multipart.rb', line 86 def length @part.bytesize end |