Sha256: c6cb038734895e10af8836be151fdd3e90eeba39a8cf3f648f8204952219e673
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
require 'active_support/concern' class Frenetic module MemberRestMethods extend ActiveSupport::Concern module ClassMethods def find( params = {} ) params = { id:params } unless params.is_a? Hash if response = api.get( member_url(params) ) and response.success? new response.body end end def all if response = api.get( collection_url ) and response.success? Frenetic::ResourceCollection.new self, response.body end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
frenetic-0.0.20.alpha.4 | lib/frenetic/concerns/member_rest_methods.rb |