Class: JayAPI::Elasticsearch::Stats::Index

Inherits:
Object
  • Object
show all
Defined in:
lib/jay_api/elasticsearch/stats/index.rb

Overview

Holds information about an Elasticsearch Index.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name, data) ⇒ Index

Returns a new instance of Index.

Parameters:

  • name (String)

    The name of the index.

  • data (Hash)

    Information about the index.



12
13
14
15
# File 'lib/jay_api/elasticsearch/stats/index.rb', line 12

def initialize(name, data)
  @name = name
  @data = data
end

Instance Attribute Details

#nameObject (readonly)

Returns the value of attribute name.



8
9
10
# File 'lib/jay_api/elasticsearch/stats/index.rb', line 8

def name
  @name
end