Class: Rafflesia::CombinedSearchRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CombinedSearchRequest
- Defined in:
- lib/rafflesia/search/combined_search_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ domain: :domain, engine_timeout_ms: :engine_timeout_ms, max_hits: :max_hits, reference: :reference, require_complete: :require_complete, sequence_overlay: :sequence_overlay, structure_overlay: :structure_overlay }.freeze
Instance Attribute Summary collapse
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#engine_timeout_ms ⇒ Object
Returns the value of attribute engine_timeout_ms.
-
#max_hits ⇒ Object
Returns the value of attribute max_hits.
-
#reference ⇒ Object
Returns the value of attribute reference.
-
#require_complete ⇒ Object
Returns the value of attribute require_complete.
-
#sequence_overlay ⇒ Object
Returns the value of attribute sequence_overlay.
-
#structure_overlay ⇒ Object
Returns the value of attribute structure_overlay.
Instance Method Summary collapse
-
#initialize(json) ⇒ CombinedSearchRequest
constructor
A new instance of CombinedSearchRequest.
Constructor Details
#initialize(json) ⇒ CombinedSearchRequest
Returns a new instance of CombinedSearchRequest.
27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/rafflesia/search/combined_search_request.rb', line 27 def initialize(json) super() hash = self.class.normalize(json) @domain = hash[:domain] @engine_timeout_ms = hash[:engine_timeout_ms] @max_hits = hash[:max_hits] @reference = hash[:reference] ? Rafflesia::CombinedSearchReferenceRequest.new(hash[:reference]) : nil @require_complete = hash[:require_complete] @sequence_overlay = hash[:sequence_overlay] ? Rafflesia::CombinedSearchSequenceOverlayRequest.new(hash[:sequence_overlay]) : nil @structure_overlay = hash[:structure_overlay] ? Rafflesia::CombinedSearchStructureOverlayRequest.new(hash[:structure_overlay]) : nil end |
Instance Attribute Details
#domain ⇒ Object
Returns the value of attribute domain.
18 19 20 |
# File 'lib/rafflesia/search/combined_search_request.rb', line 18 def domain @domain end |
#engine_timeout_ms ⇒ Object
Returns the value of attribute engine_timeout_ms.
18 19 20 |
# File 'lib/rafflesia/search/combined_search_request.rb', line 18 def engine_timeout_ms @engine_timeout_ms end |
#max_hits ⇒ Object
Returns the value of attribute max_hits.
18 19 20 |
# File 'lib/rafflesia/search/combined_search_request.rb', line 18 def max_hits @max_hits end |
#reference ⇒ Object
Returns the value of attribute reference.
18 19 20 |
# File 'lib/rafflesia/search/combined_search_request.rb', line 18 def reference @reference end |
#require_complete ⇒ Object
Returns the value of attribute require_complete.
18 19 20 |
# File 'lib/rafflesia/search/combined_search_request.rb', line 18 def require_complete @require_complete end |
#sequence_overlay ⇒ Object
Returns the value of attribute sequence_overlay.
18 19 20 |
# File 'lib/rafflesia/search/combined_search_request.rb', line 18 def @sequence_overlay end |
#structure_overlay ⇒ Object
Returns the value of attribute structure_overlay.
18 19 20 |
# File 'lib/rafflesia/search/combined_search_request.rb', line 18 def @structure_overlay end |