Sha256: 4bb772332ebe31593834bf7cbe4b29a15c7344f2276df6b43f5581b7070d37d7
Contents?: true
Size: 252 Bytes
Versions: 4
Compression:
Stored size: 252 Bytes
Contents
require 'active_support/concern' class Frenetic module CollectionRestMethods extend ActiveSupport::Concern def get(id) response = api.get(member_url(id)) @resource_class.new(response.body) if response.success? end end end
Version data entries
4 entries across 4 versions & 1 rubygems