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

#initialize(owner) ⇒ AllHandler

Returns a new instance of AllHandler.



49
50
51
# File 'lib/sequencescape-api/finder_methods.rb', line 49

def initialize(owner)
  @owner = owner
end

Instance Method Details

#success(json) ⇒ Object



65
66
67
# File 'lib/sequencescape-api/finder_methods.rb', line 65

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