Class: Rafflesia::CombinedSearchSourceStatus
- Inherits:
-
Types::BaseModel
- Object
- Types::BaseModel
- Rafflesia::CombinedSearchSourceStatus
- Defined in:
- lib/rafflesia/search/combined_search_source_status.rb
Constant Summary collapse
- HASH_ATTRS =
{ corpus: :corpus, domain: :domain, elapsed_ms: :elapsed_ms, error: :error, family: :family, hit_count: :hit_count, index_version: :index_version, manifest_generation: :manifest_generation, namespace: :namespace, object_bytes_fetched: :object_bytes_fetched, object_read_count: :object_read_count, ok: :ok, release_id: :release_id, role: :role }.freeze
Instance Attribute Summary collapse
-
#corpus ⇒ Object
Returns the value of attribute corpus.
-
#domain ⇒ Object
Returns the value of attribute domain.
-
#elapsed_ms ⇒ Object
Returns the value of attribute elapsed_ms.
-
#error ⇒ Object
Returns the value of attribute error.
-
#family ⇒ Object
Returns the value of attribute family.
-
#hit_count ⇒ Object
Returns the value of attribute hit_count.
-
#index_version ⇒ Object
Returns the value of attribute index_version.
-
#manifest_generation ⇒ Object
Returns the value of attribute manifest_generation.
-
#namespace ⇒ Object
Returns the value of attribute namespace.
-
#object_bytes_fetched ⇒ Object
Returns the value of attribute object_bytes_fetched.
-
#object_read_count ⇒ Object
Returns the value of attribute object_read_count.
-
#ok ⇒ Object
Returns the value of attribute ok.
-
#release_id ⇒ Object
Returns the value of attribute release_id.
-
#role ⇒ Object
Returns the value of attribute role.
Instance Method Summary collapse
-
#initialize(json) ⇒ CombinedSearchSourceStatus
constructor
A new instance of CombinedSearchSourceStatus.
Constructor Details
#initialize(json) ⇒ CombinedSearchSourceStatus
Returns a new instance of CombinedSearchSourceStatus.
41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 41 def initialize(json) super() hash = self.class.normalize(json) @corpus = hash[:corpus] @domain = hash[:domain] @elapsed_ms = hash[:elapsed_ms] @error = hash[:error] @family = hash[:family] @hit_count = hash[:hit_count] @index_version = hash[:index_version] @manifest_generation = hash[:manifest_generation] @namespace = hash[:namespace] @object_bytes_fetched = hash[:object_bytes_fetched] @object_read_count = hash[:object_read_count] @ok = hash[:ok] @release_id = hash[:release_id] @role = hash[:role] end |
Instance Attribute Details
#corpus ⇒ Object
Returns the value of attribute corpus.
25 26 27 |
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25 def corpus @corpus end |
#domain ⇒ Object
Returns the value of attribute domain.
25 26 27 |
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25 def domain @domain end |
#elapsed_ms ⇒ Object
Returns the value of attribute elapsed_ms.
25 26 27 |
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25 def elapsed_ms @elapsed_ms end |
#error ⇒ Object
Returns the value of attribute error.
25 26 27 |
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25 def error @error end |
#family ⇒ Object
Returns the value of attribute family.
25 26 27 |
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25 def family @family end |
#hit_count ⇒ Object
Returns the value of attribute hit_count.
25 26 27 |
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25 def hit_count @hit_count end |
#index_version ⇒ Object
Returns the value of attribute index_version.
25 26 27 |
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25 def index_version @index_version end |
#manifest_generation ⇒ Object
Returns the value of attribute manifest_generation.
25 26 27 |
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25 def manifest_generation @manifest_generation end |
#namespace ⇒ Object
Returns the value of attribute namespace.
25 26 27 |
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25 def namespace @namespace end |
#object_bytes_fetched ⇒ Object
Returns the value of attribute object_bytes_fetched.
25 26 27 |
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25 def object_bytes_fetched @object_bytes_fetched end |
#object_read_count ⇒ Object
Returns the value of attribute object_read_count.
25 26 27 |
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25 def object_read_count @object_read_count end |
#ok ⇒ Object
Returns the value of attribute ok.
25 26 27 |
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25 def ok @ok end |
#release_id ⇒ Object
Returns the value of attribute release_id.
25 26 27 |
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25 def release_id @release_id end |
#role ⇒ Object
Returns the value of attribute role.
25 26 27 |
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25 def role @role end |