Class: Mkxms::Mssql::StatisticsHandler
- Inherits:
-
Object
- Object
- Mkxms::Mssql::StatisticsHandler
- Includes:
- PropertyHandler::ElementHandler
- Defined in:
- lib/mkxms/mssql/statistics_handler.rb
Instance Method Summary collapse
- #handle_column_element(parse) ⇒ Object
-
#initialize(statistics_objs, node) ⇒ StatisticsHandler
constructor
A new instance of StatisticsHandler.
Methods included from PropertyHandler::ElementHandler
Constructor Details
#initialize(statistics_objs, node) ⇒ StatisticsHandler
Returns a new instance of StatisticsHandler.
43 44 45 46 47 48 49 50 |
# File 'lib/mkxms/mssql/statistics_handler.rb', line 43 def initialize(statistics_objs, node) a = node.attributes @statistics = Statistics.new(a).tap do |s| store_properties_on s statistics_objs << s end end |
Instance Method Details
#handle_column_element(parse) ⇒ Object
52 53 54 |
# File 'lib/mkxms/mssql/statistics_handler.rb', line 52 def handle_column_element(parse) @statistics.columns << parse.node.attributes['name'] end |