Class: ElasticGraph::SchemaDefinition::SchemaElements::DeprecatedElement

Inherits:
Data
  • Object
show all
Defined in:
lib/elastic_graph/schema_definition/schema_elements/deprecated_element.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#defined_atObject (readonly)

Returns the value of attribute defined_at

Returns:

  • (Object)

    the current value of defined_at



13
14
15
# File 'lib/elastic_graph/schema_definition/schema_elements/deprecated_element.rb', line 13

def defined_at
  @defined_at
end

#defined_viaObject (readonly)

Returns the value of attribute defined_via

Returns:

  • (Object)

    the current value of defined_via



13
14
15
# File 'lib/elastic_graph/schema_definition/schema_elements/deprecated_element.rb', line 13

def defined_via
  @defined_via
end

#nameObject (readonly)

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



13
14
15
# File 'lib/elastic_graph/schema_definition/schema_elements/deprecated_element.rb', line 13

def name
  @name
end

#schema_def_stateObject (readonly)

Returns the value of attribute schema_def_state

Returns:

  • (Object)

    the current value of schema_def_state



13
14
15
# File 'lib/elastic_graph/schema_definition/schema_elements/deprecated_element.rb', line 13

def schema_def_state
  @schema_def_state
end

Instance Method Details

#descriptionObject



15
16
17
# File 'lib/elastic_graph/schema_definition/schema_elements/deprecated_element.rb', line 15

def description
  "`#{defined_via}` at #{defined_at.path}:#{defined_at.lineno}"
end