module AbsorbApi::Where

Public Instance Methods

where(**conditions) click to toggle source
# File lib/absorb_api/where.rb, line 7
def where(**conditions)
  objs = api.get(to_s.demodulize.pluralize, conditions).map do |attrs|
    new(attrs)
  end

  Collection.new(objs, klass: to_s.demodulize)
end