Class: Gamefic::Query::Result
- Inherits:
-
Object
- Object
- Gamefic::Query::Result
- Defined in:
- lib/gamefic/query/result.rb
Overview
The result of a query.
Instance Attribute Summary collapse
- #match ⇒ Entity, ... readonly
- #remainder ⇒ String readonly
-
#strictness ⇒ Object
readonly
Returns the value of attribute strictness.
Instance Method Summary collapse
-
#initialize(match, remainder, strictness = 0) ⇒ Result
constructor
A new instance of Result.
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
#match ⇒ Entity, ... (readonly)
9 10 11 |
# File 'lib/gamefic/query/result.rb', line 9 def match @match end |
#remainder ⇒ String (readonly)
12 13 14 |
# File 'lib/gamefic/query/result.rb', line 12 def remainder @remainder end |
#strictness ⇒ Object (readonly)
Returns the value of attribute strictness.
14 15 16 |
# File 'lib/gamefic/query/result.rb', line 14 def strictness @strictness end |