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
# 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_propertiesObject



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