Module: Frenetic::CollectionRestMethods

Extended by:
ActiveSupport::Concern
Included in:
ResourceCollection
Defined in:
lib/frenetic/concerns/collection_rest_methods.rb

Instance Method Summary collapse

Instance Method Details

#get(id) ⇒ Object



7
8
9
10
# File 'lib/frenetic/concerns/collection_rest_methods.rb', line 7

def get(id)
  response = api.get(member_url(id))
  @resource_class.new(response.body) if response.success?
end