Class: Mkxms::Mssql::StatisticsHandler

Inherits:
Object
  • Object
show all
Includes:
PropertyHandler::ElementHandler
Defined in:
lib/mkxms/mssql/statistics_handler.rb

Instance Method Summary collapse

Methods included from PropertyHandler::ElementHandler

#handle_property_element

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