Class: Rafflesia::CorpuReleaseSearchProvenance
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CorpuReleaseSearchProvenance
- Defined in:
- lib/rafflesia/datasets/corpu_release_search_provenance.rb
Constant Summary collapse
- HASH_ATTRS =
{ bytes_read: :bytes_read, candidates_examined: :candidates_examined, evidence: :evidence, object_reads: :object_reads, params: :params, release_id: :release_id }.freeze
Instance Attribute Summary collapse
-
#bytes_read ⇒ Object
Returns the value of attribute bytes_read.
-
#candidates_examined ⇒ Object
Returns the value of attribute candidates_examined.
-
#evidence ⇒ Object
Returns the value of attribute evidence.
-
#object_reads ⇒ Object
Returns the value of attribute object_reads.
-
#params ⇒ Object
Returns the value of attribute params.
-
#release_id ⇒ Object
Returns the value of attribute release_id.
Instance Method Summary collapse
-
#initialize(json) ⇒ CorpuReleaseSearchProvenance
constructor
A new instance of CorpuReleaseSearchProvenance.
Constructor Details
#initialize(json) ⇒ CorpuReleaseSearchProvenance
Returns a new instance of CorpuReleaseSearchProvenance.
25 26 27 28 29 30 31 32 33 34 |
# File 'lib/rafflesia/datasets/corpu_release_search_provenance.rb', line 25 def initialize(json) super() hash = self.class.normalize(json) @bytes_read = hash[:bytes_read] @candidates_examined = hash[:candidates_examined] @evidence = hash[:evidence] || {} @object_reads = hash[:object_reads] @params = hash[:params] || {} @release_id = hash[:release_id] end |
Instance Attribute Details
#bytes_read ⇒ Object
Returns the value of attribute bytes_read.
17 18 19 |
# File 'lib/rafflesia/datasets/corpu_release_search_provenance.rb', line 17 def bytes_read @bytes_read end |
#candidates_examined ⇒ Object
Returns the value of attribute candidates_examined.
17 18 19 |
# File 'lib/rafflesia/datasets/corpu_release_search_provenance.rb', line 17 def candidates_examined @candidates_examined end |
#evidence ⇒ Object
Returns the value of attribute evidence.
17 18 19 |
# File 'lib/rafflesia/datasets/corpu_release_search_provenance.rb', line 17 def evidence @evidence end |
#object_reads ⇒ Object
Returns the value of attribute object_reads.
17 18 19 |
# File 'lib/rafflesia/datasets/corpu_release_search_provenance.rb', line 17 def object_reads @object_reads end |
#params ⇒ Object
Returns the value of attribute params.
17 18 19 |
# File 'lib/rafflesia/datasets/corpu_release_search_provenance.rb', line 17 def params @params end |
#release_id ⇒ Object
Returns the value of attribute release_id.
17 18 19 |
# File 'lib/rafflesia/datasets/corpu_release_search_provenance.rb', line 17 def release_id @release_id end |