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
- #extended_properties ⇒ Object
- #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 |
# File 'lib/mkxms/mssql/statistics_handler.rb', line 43 def initialize(statistics_objs, node) a = node.attributes @statistics = Statistics.new(a).tap do |s| statistics_objs << s end end |
Instance Method Details
#extended_properties ⇒ Object
51 52 53 |
# File 'lib/mkxms/mssql/statistics_handler.rb', line 51 def extended_properties @statistics.extended_properties end |
#handle_column_element(parse) ⇒ Object
55 56 57 |
# File 'lib/mkxms/mssql/statistics_handler.rb', line 55 def handle_column_element(parse) @statistics.columns << parse.node.attributes['name'] end |