Class: ChefAPI::Multipart::EndingPart

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

Overview

The end of the entire request

Instance Method Summary collapse

Constructor Details

#initializeEndingPart

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

#ioObject



155
156
157
# File 'lib/chef-api/multipart.rb', line 155

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

#sizeObject



159
160
161
# File 'lib/chef-api/multipart.rb', line 159

def size
  @part.bytesize
end