Method: Smartsheet::API::ImportPathFileSpec#initialize

Defined in:
lib/smartsheet/api/file_spec.rb

#initialize(path, content_type) ⇒ ImportPathFileSpec

Returns a new instance of ImportPathFileSpec.



35
36
37
38
39
40
# File 'lib/smartsheet/api/file_spec.rb', line 35

def initialize(path, content_type)
  @file_length = File.size(path)
  @filename = nil
  @upload_io = Faraday::UploadIO.new(path, content_type)
  @content_type = content_type
end