Class: Smartsheet::API::ImportObjectFileSpec
- Inherits:
-
Object
- Object
- Smartsheet::API::ImportObjectFileSpec
- Defined in:
- lib/smartsheet/api/file_spec.rb
Overview
Specification for file sheet import by File, file length, and MIME content type
Instance Attribute Summary collapse
-
#content_type ⇒ Object
readonly
Returns the value of attribute content_type.
-
#file_length ⇒ Object
readonly
Returns the value of attribute file_length.
-
#filename ⇒ Object
readonly
Returns the value of attribute filename.
-
#upload_io ⇒ Object
readonly
Returns the value of attribute upload_io.
Instance Method Summary collapse
-
#initialize(file, file_length, content_type) ⇒ ImportObjectFileSpec
constructor
A new instance of ImportObjectFileSpec.
Constructor Details
#initialize(file, file_length, content_type) ⇒ ImportObjectFileSpec
Returns a new instance of ImportObjectFileSpec.
47 48 49 50 51 52 |
# File 'lib/smartsheet/api/file_spec.rb', line 47 def initialize(file, file_length, content_type) @file_length = file_length @filename = nil @upload_io = Faraday::UploadIO.new(file, content_type) @content_type = content_type end |
Instance Attribute Details
#content_type ⇒ Object (readonly)
Returns the value of attribute content_type.
45 46 47 |
# File 'lib/smartsheet/api/file_spec.rb', line 45 def content_type @content_type end |
#file_length ⇒ Object (readonly)
Returns the value of attribute file_length.
45 46 47 |
# File 'lib/smartsheet/api/file_spec.rb', line 45 def file_length @file_length end |
#filename ⇒ Object (readonly)
Returns the value of attribute filename.
45 46 47 |
# File 'lib/smartsheet/api/file_spec.rb', line 45 def filename @filename end |
#upload_io ⇒ Object (readonly)
Returns the value of attribute upload_io.
45 46 47 |
# File 'lib/smartsheet/api/file_spec.rb', line 45 def upload_io @upload_io end |