Class: ShellCardManagementApIs::FileWrapper

Inherits:
CoreLibrary::FileWrapper
  • Object
show all
Defined in:
lib/shell_card_management_ap_is/utilities/file_wrapper.rb

Overview

A utility to allow users to set the content-type for files

Instance Method Summary collapse

Constructor Details

#initialize(file, content_type: 'application/octet-stream') ⇒ FileWrapper

The constructor.

Parameters:

  • file (File)

    The file to be sent in the request.

  • content_type (string) (defaults to: 'application/octet-stream')

    The content type of the provided file.



12
13
14
# File 'lib/shell_card_management_ap_is/utilities/file_wrapper.rb', line 12

def initialize(file, content_type: 'application/octet-stream')
  super
end