Class: ChefAPI::Multipart::EndingPart

Inherits:
Object
  • Object
show all
Defined in:
lib/chef-api/connection.rb

Overview

The end of the entire request

Instance Method Summary collapse

Constructor Details

#initializeEndingPart

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

#ioObject



667
668
669
# File 'lib/chef-api/connection.rb', line 667

def io
  @io ||= StringIO.new(@part)
end

#sizeObject



671
672
673
# File 'lib/chef-api/connection.rb', line 671

def size
  @part.bytesize
end