class AgnosticBackend::Queryable::Attribute
Attributes
name[R]
parent[R]
Public Class Methods
new(name, parent:, context:)
click to toggle source
Calls superclass method
# File lib/agnostic_backend/queryable/attribute.rb, line 8 def initialize(name, parent:, context:) super([], context) @name, @parent = name, parent end
Public Instance Methods
==(o)
click to toggle source
Calls superclass method
# File lib/agnostic_backend/queryable/attribute.rb, line 13 def ==(o) super && o.name == name end
any?()
click to toggle source
# File lib/agnostic_backend/queryable/attribute.rb, line 21 def any? @name == '*' end
score?()
click to toggle source
# File lib/agnostic_backend/queryable/attribute.rb, line 25 def score? @name == '_score' end
type()
click to toggle source
# File lib/agnostic_backend/queryable/attribute.rb, line 17 def type value_for_key(context.index.schema, name).try(:type) end