Class: ChefAPI::Multipart::EndingPart
- Inherits:
-
Object
- Object
- ChefAPI::Multipart::EndingPart
- Defined in:
- lib/chef-api/connection.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.
663 664 665 |
# File 'lib/chef-api/connection.rb', line 663 def initialize @part = "--#{BOUNDARY}--\r\n\r\n" end |
Instance Method Details
#io ⇒ Object
667 668 669 |
# File 'lib/chef-api/connection.rb', line 667 def io @io ||= StringIO.new(@part) end |
#size ⇒ Object
671 672 673 |
# File 'lib/chef-api/connection.rb', line 671 def size @part.bytesize end |