Sha256: 66e342d57376dd406245e186a84bcb707adbdde7c13b925d44bd01a813aa14ea
Contents?: true
Size: 423 Bytes
Versions: 1
Compression:
Stored size: 423 Bytes
Contents
module Loquor module Representation module ClassMethods [:find, :where].each do |proxy| define_method proxy do |*args| new.send proxy, *args end end end module InstanceMethods def find(id) ApiCall::Show.new(self.class.path, id).execute end def where(*args) ApiCall::Index.new(self.class.path).where(*args) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
loquor-0.0.1 | lib/loquor/representation.rb |