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
10
11
12
13
# File 'app/models/pulldown/requests/bait_library_request.rb', line 6

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

Instance Method Details

#update_pool_information(pool_information) ⇒ Object

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


16
17
18
19
# File 'app/models/pulldown/requests/bait_library_request.rb', line 16

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