Class: RestMan::Payload::Multipart::WriteContentDisposition

Inherits:
ActiveMethod::Base
  • Object
show all
Defined in:
lib/restman/payload/multipart/write_content_disposition.rb

Instance Method Summary collapse

Instance Method Details

#callObject



11
12
13
14
15
16
17
# File 'lib/restman/payload/multipart/write_content_disposition.rb', line 11

def call
  if file?
    write_header_for_file_field
  else
    write_header_for_regular_field
  end
end