Class: Gamefic::Query::Matches
- Inherits:
-
Object
- Object
- Gamefic::Query::Matches
- Defined in:
- lib/gamefic/query/matches.rb
Instance Attribute Summary collapse
-
#matching ⇒ Object
Returns the value of attribute matching.
-
#objects ⇒ Object
Returns the value of attribute objects.
-
#remaining ⇒ Object
Returns the value of attribute remaining.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(objects, matching, remaining) ⇒ Matches
constructor
A new instance of Matches.
Constructor Details
#initialize(objects, matching, remaining) ⇒ Matches
Returns a new instance of Matches.
6 7 8 9 10 |
# File 'lib/gamefic/query/matches.rb', line 6 def initialize objects, matching, remaining @objects = objects @matching = matching @remaining = remaining end |
Instance Attribute Details
#matching ⇒ Object
Returns the value of attribute matching.
4 5 6 |
# File 'lib/gamefic/query/matches.rb', line 4 def matching @matching end |
#objects ⇒ Object
Returns the value of attribute objects.
4 5 6 |
# File 'lib/gamefic/query/matches.rb', line 4 def objects @objects end |
#remaining ⇒ Object
Returns the value of attribute remaining.
4 5 6 |
# File 'lib/gamefic/query/matches.rb', line 4 def remaining @remaining end |
Class Method Details
.execute(objects, description, continued: false) ⇒ Object
12 13 14 15 16 17 18 |
# File 'lib/gamefic/query/matches.rb', line 12 def self.execute objects, description, continued: false if continued match_with_remainder objects, description else match_without_remainder objects, description end end |