Class: ChatWork::EpiloguePart

Inherits:
Faraday::Parts::EpiloguePart
  • Object
show all
Defined in:
lib/chatwork/multipart.rb

Instance Method Summary collapse

Constructor Details

#initialize(boundary) ⇒ EpiloguePart

rubocop:disable Lint/MissingSuper



18
19
20
21
22
23
# File 'lib/chatwork/multipart.rb', line 18

def initialize(boundary) # rubocop:disable Lint/MissingSuper
  # NOTE: ChatWork doesn't accepts ending "\r\n\r\n" of payload...
  # @part = "--#{boundary}--\r\n\r\n"
  @part = "--#{boundary}--\r\n"
  @io = StringIO.new(@part)
end