Module: Sequencescape::Api::FinderMethods

Included in:
Associations::HasMany::AssociationProxy, ResourceModelProxy
Defined in:
lib/sequencescape-api/finder_methods.rb

Defined Under Namespace

Modules: Delegation Classes: AllHandler, FindByUuidHandler

Class Method Summary (collapse)

Instance Method Summary (collapse)

Class Method Details

+ (Object) extended(base)



15
16
17
# File 'lib/sequencescape-api/finder_methods.rb', line 15

def extended(base)
  base.singleton_class.send(:include, Delegation)
end

+ (Object) included(base)



19
20
21
# File 'lib/sequencescape-api/finder_methods.rb', line 19

def included(base)
  base.send(:include, Delegation)
end

Instance Method Details

- (Object) all



58
59
60
# File 'lib/sequencescape-api/finder_methods.rb', line 58

def all
  api.read(actions.read, AllHandler.new(self))
end

- (Object) find(uuid)



39
40
41
# File 'lib/sequencescape-api/finder_methods.rb', line 39

def find(uuid)
  api.read_uuid(uuid, FindByUuidHandler.new(self))
end