Class: Sequencescape::Api::FinderMethods::AllHandler

Inherits:
Object
  • Object
show all
Includes:
BasicErrorHandling
Defined in:
lib/sequencescape-api/finder_methods.rb

Instance Method Summary (collapse)

Methods included from BasicErrorHandling

#missing, #redirection, #unauthenticated

Constructor Details

- (AllHandler) initialize(owner)

A new instance of AllHandler



46
47
48
# File 'lib/sequencescape-api/finder_methods.rb', line 46

def initialize(owner)
  @owner = owner
end

Instance Method Details

- (Object) success(json)



53
54
55
# File 'lib/sequencescape-api/finder_methods.rb', line 53

def success(json)
  ::Sequencescape::Api::PageOfResults.new(api, json, &method(:new))
end