class ROM::Elasticsearch::IndexName

@api private

Attributes

name[R]

@api private

Public Class Methods

[](name) click to toggle source
# File lib/rom/elasticsearch/index_name.rb, line 12
def self.[](name)
  if name.is_a?(self)
    name
  else
    new(name)
  end
end
new(name) click to toggle source

@api private

# File lib/rom/elasticsearch/index_name.rb, line 21
def initialize(name)
  @name = name
  freeze
end

Public Instance Methods

to_sym() click to toggle source

@api private

# File lib/rom/elasticsearch/index_name.rb, line 27
def to_sym
  name
end