Class: Sequencescape::Api::FinderMethods::FindByUuidHandler

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) ⇒ FindByUuidHandler

Returns a new instance of FindByUuidHandler.



27
28
29
# File 'lib/sequencescape-api/finder_methods.rb', line 27

def initialize(owner)
  @owner = owner
end

Instance Method Details

#success(json) ⇒ Object



37
38
39
# File 'lib/sequencescape-api/finder_methods.rb', line 37

def success(json)
  new(json, true)
end