Class: NoSE::Plans::UpdateState
- Defined in:
- lib/nose/plans/update_planner.rb
Overview
A simple state class to hold the cardinality for updates
Instance Attribute Summary collapse
-
#cardinality ⇒ Object
readonly
Returns the value of attribute cardinality.
-
#statement ⇒ Object
readonly
Returns the value of attribute statement.
Instance Method Summary collapse
-
#answered? ⇒ Boolean
XXX This is just a placeholder since this is currently used by the query planner.
-
#initialize(statement, cardinality) ⇒ UpdateState
constructor
A new instance of UpdateState.
Constructor Details
#initialize(statement, cardinality) ⇒ UpdateState
Returns a new instance of UpdateState.
9 10 11 12 |
# File 'lib/nose/plans/update_planner.rb', line 9 def initialize(statement, cardinality) @statement = statement @cardinality = cardinality end |
Instance Attribute Details
#cardinality ⇒ Object (readonly)
Returns the value of attribute cardinality.
7 8 9 |
# File 'lib/nose/plans/update_planner.rb', line 7 def cardinality @cardinality end |
#statement ⇒ Object (readonly)
Returns the value of attribute statement.
7 8 9 |
# File 'lib/nose/plans/update_planner.rb', line 7 def statement @statement end |
Instance Method Details
#answered? ⇒ Boolean
XXX This is just a placeholder since this is
currently used by the query planner
17 18 19 |
# File 'lib/nose/plans/update_planner.rb', line 17 def answered? true end |