Sha256: 3e2e3cdd952bad3f93de2a2c0e56d18f2fc3b803b8196bc2be77763e1da213ca
Contents?: true
Size: 440 Bytes
Versions: 5
Compression:
Stored size: 440 Bytes
Contents
module SparkApi module Models module Subresource def build_subclass Class.new(self) end def find_by_listing_key(key, arguments={}) collect(connection.get("/listings/#{key}#{self.path}", arguments)) end def find_by_id(id, parent_id, arguments={}) collect(connection.get("/listings/#{parent_id}#{self.path}/#{id}", arguments)).first end end end end
Version data entries
5 entries across 5 versions & 1 rubygems