module Besepa::ApiCalls::List::ClassMethods
Public Instance Methods
all(filters={})
click to toggle source
# File lib/besepa/api_calls/list.rb, line 5 def all(filters={}) path = api_path(filters) response = get(path, query_params(filters)) Besepa::Collection.new(response, self) end
find(id, filters={})
click to toggle source
# File lib/besepa/api_calls/list.rb, line 11 def find(id, filters={}) response = get "#{api_path(filters)}/#{id}" c = self.new(response['response']) c end