Class: Gamefic::Query::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/gamefic/query/result.rb

Overview

The result of a query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(match, remainder, strictness = 0) ⇒ Result

Returns a new instance of Result.



16
17
18
19
20
# File 'lib/gamefic/query/result.rb', line 16

def initialize match, remainder, strictness = 0
  @match = match
  @remainder = remainder
  @strictness = strictness
end

Instance Attribute Details

#matchEntity, ... (readonly)

Returns:



9
10
11
# File 'lib/gamefic/query/result.rb', line 9

def match
  @match
end

#remainderString (readonly)

Returns:



12
13
14
# File 'lib/gamefic/query/result.rb', line 12

def remainder
  @remainder
end

#strictnessObject (readonly)

Returns the value of attribute strictness.



14
15
16
# File 'lib/gamefic/query/result.rb', line 14

def strictness
  @strictness
end