Class: ChefAPI::Multipart::EndingPart
- Inherits:
-
Object
- Object
- ChefAPI::Multipart::EndingPart
- Defined in:
- lib/chef-api/multipart.rb
Overview
The end of the entire request
Instance Method Summary collapse
-
#initialize ⇒ EndingPart
constructor
A new instance of EndingPart.
- #io ⇒ Object
- #size ⇒ Object
Constructor Details
#initialize ⇒ EndingPart
Returns a new instance of EndingPart.
151 152 153 |
# File 'lib/chef-api/multipart.rb', line 151 def initialize @part = "--#{BOUNDARY}--\r\n\r\n" end |
Instance Method Details
#io ⇒ Object
155 156 157 |
# File 'lib/chef-api/multipart.rb', line 155 def io @io ||= StringIO.new(@part) end |
#size ⇒ Object
159 160 161 |
# File 'lib/chef-api/multipart.rb', line 159 def size @part.bytesize end |