lib/eligible/v1_0/file_object.rb in eligible-3.0.0.beta3 vs lib/eligible/v1_0/file_object.rb in eligible-3.0.0.beta4

- old
+ new

@@ -1,19 +1,10 @@ # frozen_string_literal: true module Eligible - class FileObject < APIResource - REST_API_VERSION = '1.0'.freeze + class FileObject < RestAPIBase + ENDPOINT_NAME = 'files'.freeze - def self.get(params, opts = {}) - send_request :get, api_url('files', params, :file_id), params, opts.merge(required_params: [:file_id]) - end - - def self.post(params, opts = {}) - send_request :post, api_url('files'), params, opts - end - - def self.list(params, opts = {}) - send_request :get, api_url('files'), params, opts - end + # not an allowed operation so override the implementation to not support explicitly even though route is not defined + def self.update; end end end