Class: Hurley::Multipart::EpiloguePart
- Inherits:
-
Object
- Object
- Hurley::Multipart::EpiloguePart
- Includes:
- Part
- Defined in:
- lib/hurley/multipart.rb
Overview
Represents the epilogue or closing boundary.
Instance Attribute Summary collapse
-
#length ⇒ Object
readonly
Returns the value of attribute length.
Instance Method Summary collapse
-
#initialize(boundary) ⇒ EpiloguePart
constructor
A new instance of EpiloguePart.
Methods included from Part
Constructor Details
#initialize(boundary) ⇒ EpiloguePart
Returns a new instance of EpiloguePart.
170 171 172 173 174 |
# File 'lib/hurley/multipart.rb', line 170 def initialize(boundary) @part = "--#{boundary}--\r\n\r\n" @io = StringIO.new(@part) @length = @part.bytesize end |
Instance Attribute Details
#length ⇒ Object (readonly)
Returns the value of attribute length.
168 169 170 |
# File 'lib/hurley/multipart.rb', line 168 def length @length end |