Module: Pulldown::Requests::BaitLibraryRequest

Included in:
IscLibraryRequest, ScLibraryRequest
Defined in:
app/models/pulldown/requests/bait_library_request.rb

Overview

Include in request classes to allow the recording of a bait library

Defined Under Namespace

Modules: BaitMetadata

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


6
7
8
9
# File 'app/models/pulldown/requests/bait_library_request.rb', line 6

def self.included(base)
  base.class_eval { fragment_size_details(100, 400) }
  base::Metadata.class_eval { include Pulldown::Requests::BaitLibraryRequest::BaitMetadata }
end

Instance Method Details

#update_pool_information(pool_information) ⇒ Object

Ensure that the bait library information is also included in the pool information.


12
13
14
15
# File 'app/models/pulldown/requests/bait_library_request.rb', line 12

def update_pool_information(pool_information)
  super
  pool_information[:bait_library] = .bait_library
end