Class: SpectatorSport::SearchQuery::Lexer::Token

Inherits:
Struct
  • Object
show all
Defined in:
app/models/spectator_sport/search_query/lexer.rb

Overview

type is one of :lparen, :rparen, :and, :or, :label value is only set for :label tokens, a hash of { key:, value:, wildcard: }

Instance Attribute Summary collapse

Instance Attribute Details

#typeObject

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



31
32
33
# File 'app/models/spectator_sport/search_query/lexer.rb', line 31

def type
  @type
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



31
32
33
# File 'app/models/spectator_sport/search_query/lexer.rb', line 31

def value
  @value
end