Class: NoSE::Serialize::UpdatePlanStepRepresenter

Inherits:
PlanStepRepresenter show all
Defined in:
lib/nose/serialize.rb

Overview

Represent update plan steps

Instance Method Summary collapse

Methods inherited from PlanStepRepresenter

#hash_cardinality

Methods included from Representable::Uncached

#representable_map

Instance Method Details

#cardinalityFixnum

The estimated cardinality of entities being updated

Returns:

  • (Fixnum)


330
331
332
333
# File 'lib/nose/serialize.rb', line 330

def cardinality
  state = represented.instance_variable_get(:@state)
  state.cardinality unless state.nil?
end

#typeSymbol

Set the hidden type variable

Returns:

  • (Symbol)


316
317
318
# File 'lib/nose/serialize.rb', line 316

def type
  represented.instance_variable_get(:@type)
end

#type=(type) ⇒ void

This method returns an undefined value.

Set the hidden type variable



322
323
324
# File 'lib/nose/serialize.rb', line 322

def type=(type)
  represented.instance_variable_set(:@type, type)
end