Class: Rafflesia::CombinedSearchSourceStatus

Inherits:
Types::BaseModel
  • Object
show all
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

Instance Method Summary collapse

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

#corpusObject

Returns the value of attribute corpus.



25
26
27
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25

def corpus
  @corpus
end

#domainObject

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_msObject

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

#errorObject

Returns the value of attribute error.



25
26
27
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25

def error
  @error
end

#familyObject

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_countObject

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_versionObject

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_generationObject

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

#namespaceObject

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_fetchedObject

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_countObject

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

#okObject

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_idObject

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

#roleObject

Returns the value of attribute role.



25
26
27
# File 'lib/rafflesia/search/combined_search_source_status.rb', line 25

def role
  @role
end