Module: FatZebra::Request::Multipart::Part

Included in:
Epilogue, FileIO, Param
Defined in:
lib/fat_zebra/request/multipart/part.rb

Constant Summary collapse

LINE_BREAK =
"\r\n"

Instance Method Summary collapse

Instance Method Details

#boundaryObject



14
15
16
# File 'lib/fat_zebra/request/multipart/part.rb', line 14

def boundary
  '----FatZebraMultipartPost'
end

#lengthObject



18
19
20
# File 'lib/fat_zebra/request/multipart/part.rb', line 18

def length
  @io.length
end

#to_ioObject



22
23
24
# File 'lib/fat_zebra/request/multipart/part.rb', line 22

def to_io
  @io
end