lib/bandwidth/utilities/file_wrapper.rb in bandwidth-sdk-8.0.0 vs lib/bandwidth/utilities/file_wrapper.rb in bandwidth-sdk-9.0.0
- old
+ new
@@ -4,11 +4,10 @@
# ( https://apimatic.io ).
module Bandwidth
# A utility to allow users to set the content-type for files
class FileWrapper
- attr_reader :content_type
- attr_reader :file
+ attr_reader :content_type, :file
def initialize(file, content_type: 'application/octet-stream')
@file = file
@content_type = content_type
end