Class: MetaSearch::Name

Inherits:
String
  • Object
show all
Defined in:
lib/meta_search/model_compatibility.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeName

Returns a new instance of Name



32
33
34
35
36
37
38
39
40
41
42
43
# File 'lib/meta_search/model_compatibility.rb', line 32

def initialize
  super("Search")
  @singular = "search".freeze
  @plural = "searches".freeze
  @element = "search".freeze
  @human = "Search".freeze
  @collection = "meta_search/searches".freeze
  @partial_path = "#{@collection}/#{@element}".freeze
  @param_key = "search".freeze
  @route_key = "searches".freeze
  @i18n_key = :meta_search
end

Instance Attribute Details

#collectionObject (readonly) Also known as: cache_key

Returns the value of attribute collection



29
30
31
# File 'lib/meta_search/model_compatibility.rb', line 29

def collection
  @collection
end

#elementObject (readonly)

Returns the value of attribute element



29
30
31
# File 'lib/meta_search/model_compatibility.rb', line 29

def element
  @element
end

#humanObject (readonly)

Returns the value of attribute human



29
30
31
# File 'lib/meta_search/model_compatibility.rb', line 29

def human
  @human
end

#i18n_keyObject (readonly)

Returns the value of attribute i18n_key



29
30
31
# File 'lib/meta_search/model_compatibility.rb', line 29

def i18n_key
  @i18n_key
end

#param_keyObject (readonly)

Returns the value of attribute param_key



29
30
31
# File 'lib/meta_search/model_compatibility.rb', line 29

def param_key
  @param_key
end

#partial_pathObject (readonly)

Returns the value of attribute partial_path



29
30
31
# File 'lib/meta_search/model_compatibility.rb', line 29

def partial_path
  @partial_path
end

#pluralObject (readonly)

Returns the value of attribute plural



29
30
31
# File 'lib/meta_search/model_compatibility.rb', line 29

def plural
  @plural
end

#route_keyObject (readonly)

Returns the value of attribute route_key



29
30
31
# File 'lib/meta_search/model_compatibility.rb', line 29

def route_key
  @route_key
end

#singularObject (readonly)

Returns the value of attribute singular



29
30
31
# File 'lib/meta_search/model_compatibility.rb', line 29

def singular
  @singular
end