lib/myjohndeere/file_resource.rb in myjohndeere-0.0.5 vs lib/myjohndeere/file_resource.rb in myjohndeere-0.0.6
- old
+ new
@@ -10,9 +10,11 @@
end
def self.create(access_token, organization_id, map_layer_id, file_type: nil,
metadata: [])
raise ArgumentError.new("You must pass a file_type") if file_type.nil?
+ raise ArgumentError.new("You must pass a valid organization id") if organization_id.nil?
+ raise ArgumentError.new("You must pass a valid map layer id") if map_layer_id.nil?
case file_type
when :png
mime_type = 'image/png'
when :zip
\ No newline at end of file