lib/ribose/file_uploader.rb in ribose-0.4.1 vs lib/ribose/file_uploader.rb in ribose-0.5.0
- old
+ new
@@ -29,10 +29,10 @@
# @param space_id [String] The Space UUID
# @param file [File] The complete path for file
# @param attributes [Hash] Attributes as a Hash
# @return [Sawyer::Resource] File upload response.
def self.upload(space_id, file:, **attributes)
- new(space_id, attributes.merge(file: file)).create
+ new(space_id, **attributes.merge(file: file)).create
end
private
attr_reader :file, :space_id, :attributes