Class: Rafflesia::CreateHomologySearchRequest
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CreateHomologySearchRequest
- Defined in:
- lib/rafflesia/homology_searches/create_homology_search_request.rb
Constant Summary collapse
- HASH_ATTRS =
{ background: :background, database_id: :database_id, database_release_alias: :database_release_alias, database_release_id: :database_release_id, metadata: :metadata, mode: :mode, parameters: :parameters, query: :query, query_context_id: :query_context_id, search_profile: :search_profile }.freeze
Instance Attribute Summary collapse
-
#background ⇒ Object
Returns the value of attribute background.
-
#database_id ⇒ Object
Returns the value of attribute database_id.
-
#database_release_alias ⇒ Object
Returns the value of attribute database_release_alias.
-
#database_release_id ⇒ Object
Returns the value of attribute database_release_id.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#query ⇒ Object
Returns the value of attribute query.
-
#query_context_id ⇒ Object
Returns the value of attribute query_context_id.
-
#search_profile ⇒ Object
Returns the value of attribute search_profile.
Instance Method Summary collapse
-
#initialize(json) ⇒ CreateHomologySearchRequest
constructor
A new instance of CreateHomologySearchRequest.
Constructor Details
#initialize(json) ⇒ CreateHomologySearchRequest
Returns a new instance of CreateHomologySearchRequest.
33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/rafflesia/homology_searches/create_homology_search_request.rb', line 33 def initialize(json) super() hash = self.class.normalize(json) @background = hash[:background] @database_id = hash[:database_id] @database_release_alias = hash[:database_release_alias] @database_release_id = hash[:database_release_id] @metadata = hash[:metadata] || {} @mode = hash[:mode] @parameters = hash[:parameters] @query = hash[:query] ? Rafflesia::HomologyQuery.new(hash[:query]) : nil @query_context_id = hash[:query_context_id] @search_profile = hash[:search_profile] end |
Instance Attribute Details
#background ⇒ Object
Returns the value of attribute background.
21 22 23 |
# File 'lib/rafflesia/homology_searches/create_homology_search_request.rb', line 21 def background @background end |
#database_id ⇒ Object
Returns the value of attribute database_id.
21 22 23 |
# File 'lib/rafflesia/homology_searches/create_homology_search_request.rb', line 21 def database_id @database_id end |
#database_release_alias ⇒ Object
Returns the value of attribute database_release_alias.
21 22 23 |
# File 'lib/rafflesia/homology_searches/create_homology_search_request.rb', line 21 def database_release_alias @database_release_alias end |
#database_release_id ⇒ Object
Returns the value of attribute database_release_id.
21 22 23 |
# File 'lib/rafflesia/homology_searches/create_homology_search_request.rb', line 21 def database_release_id @database_release_id end |
#metadata ⇒ Object
Returns the value of attribute metadata.
21 22 23 |
# File 'lib/rafflesia/homology_searches/create_homology_search_request.rb', line 21 def @metadata end |
#mode ⇒ Object
Returns the value of attribute mode.
21 22 23 |
# File 'lib/rafflesia/homology_searches/create_homology_search_request.rb', line 21 def mode @mode end |
#parameters ⇒ Object
Returns the value of attribute parameters.
21 22 23 |
# File 'lib/rafflesia/homology_searches/create_homology_search_request.rb', line 21 def parameters @parameters end |
#query ⇒ Object
Returns the value of attribute query.
21 22 23 |
# File 'lib/rafflesia/homology_searches/create_homology_search_request.rb', line 21 def query @query end |
#query_context_id ⇒ Object
Returns the value of attribute query_context_id.
21 22 23 |
# File 'lib/rafflesia/homology_searches/create_homology_search_request.rb', line 21 def query_context_id @query_context_id end |
#search_profile ⇒ Object
Returns the value of attribute search_profile.
21 22 23 |
# File 'lib/rafflesia/homology_searches/create_homology_search_request.rb', line 21 def search_profile @search_profile end |