Class: Rafflesia::HomologySearch
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::HomologySearch
- Defined in:
- lib/rafflesia/homology_searches/homology_search.rb
Constant Summary collapse
- HASH_ATTRS =
{ cost: :cost, coverage: :coverage, created_at: :created_at, database_id: :database_id, database_release_id: :database_release_id, expires_at: :expires_at, id: :id, is_background: :is_background, livemode: :livemode, metadata: :metadata, mode: :mode, object: :object, provenance: :provenance, query: :query, query_context: :query_context, requested_database_release_alias: :requested_database_release_alias, resolved_parameters: :resolved_parameters, results: :results, results_sha256: :results_sha_256, status: :status, warnings: :warnings }.freeze
Instance Attribute Summary collapse
-
#cost ⇒ Object
Returns the value of attribute cost.
-
#coverage ⇒ Object
Returns the value of attribute coverage.
-
#created_at ⇒ Object
Returns the value of attribute created_at.
-
#database_id ⇒ Object
Returns the value of attribute database_id.
-
#database_release_id ⇒ Object
Returns the value of attribute database_release_id.
-
#expires_at ⇒ Object
Returns the value of attribute expires_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_background ⇒ Object
Returns the value of attribute is_background.
-
#livemode ⇒ Object
Returns the value of attribute livemode.
-
#metadata ⇒ Object
Returns the value of attribute metadata.
-
#mode ⇒ Object
Returns the value of attribute mode.
-
#object ⇒ Object
Returns the value of attribute object.
-
#provenance ⇒ Object
Returns the value of attribute provenance.
-
#query ⇒ Object
Returns the value of attribute query.
-
#query_context ⇒ Object
Returns the value of attribute query_context.
-
#requested_database_release_alias ⇒ Object
Returns the value of attribute requested_database_release_alias.
-
#resolved_parameters ⇒ Object
Returns the value of attribute resolved_parameters.
-
#results ⇒ Object
Returns the value of attribute results.
-
#results_sha_256 ⇒ Object
Returns the value of attribute results_sha_256.
-
#status ⇒ Object
Returns the value of attribute status.
-
#warnings ⇒ Object
Returns the value of attribute warnings.
Instance Method Summary collapse
-
#initialize(json) ⇒ HomologySearch
constructor
A new instance of HomologySearch.
Constructor Details
#initialize(json) ⇒ HomologySearch
Returns a new instance of HomologySearch.
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 55 def initialize(json) super() hash = self.class.normalize(json) @cost = hash[:cost] @coverage = hash[:coverage] @created_at = hash[:created_at] @database_id = hash[:database_id] @database_release_id = hash[:database_release_id] @expires_at = hash[:expires_at] @id = hash[:id] @is_background = hash[:is_background] @livemode = hash[:livemode] @metadata = hash[:metadata] || {} @mode = hash[:mode] @object = hash[:object] @provenance = hash[:provenance] @query = hash[:query] @query_context = hash[:query_context] @requested_database_release_alias = hash[:requested_database_release_alias] @resolved_parameters = hash[:resolved_parameters] @results = hash[:results] @results_sha_256 = hash[:results_sha256] @status = hash[:status] @warnings = (hash[:warnings] || []).map { |item| item ? Rafflesia::SearchWarning.new(item) : nil } end |
Instance Attribute Details
#cost ⇒ Object
Returns the value of attribute cost.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def cost @cost end |
#coverage ⇒ Object
Returns the value of attribute coverage.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def coverage @coverage end |
#created_at ⇒ Object
Returns the value of attribute created_at.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def created_at @created_at end |
#database_id ⇒ Object
Returns the value of attribute database_id.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def database_id @database_id end |
#database_release_id ⇒ Object
Returns the value of attribute database_release_id.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def database_release_id @database_release_id end |
#expires_at ⇒ Object
Returns the value of attribute expires_at.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def expires_at @expires_at end |
#id ⇒ Object
Returns the value of attribute id.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def id @id end |
#is_background ⇒ Object
Returns the value of attribute is_background.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def is_background @is_background end |
#livemode ⇒ Object
Returns the value of attribute livemode.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def livemode @livemode end |
#metadata ⇒ Object
Returns the value of attribute metadata.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def @metadata end |
#mode ⇒ Object
Returns the value of attribute mode.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def mode @mode end |
#object ⇒ Object
Returns the value of attribute object.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def object @object end |
#provenance ⇒ Object
Returns the value of attribute provenance.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def provenance @provenance end |
#query ⇒ Object
Returns the value of attribute query.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def query @query end |
#query_context ⇒ Object
Returns the value of attribute query_context.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def query_context @query_context end |
#requested_database_release_alias ⇒ Object
Returns the value of attribute requested_database_release_alias.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def requested_database_release_alias @requested_database_release_alias end |
#resolved_parameters ⇒ Object
Returns the value of attribute resolved_parameters.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def resolved_parameters @resolved_parameters end |
#results ⇒ Object
Returns the value of attribute results.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def results @results end |
#results_sha_256 ⇒ Object
Returns the value of attribute results_sha_256.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def results_sha_256 @results_sha_256 end |
#status ⇒ Object
Returns the value of attribute status.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def status @status end |
#warnings ⇒ Object
Returns the value of attribute warnings.
32 33 34 |
# File 'lib/rafflesia/homology_searches/homology_search.rb', line 32 def warnings @warnings end |