lib/rubyXL/objects/connection.rb in rubyXL-3.4.23 vs lib/rubyXL/objects/connection.rb in rubyXL-3.4.24
- old
+ new
@@ -57,21 +57,21 @@
define_attribute(:textDates, :bool, :default => false)
define_attribute(:xl2000, :bool, :default => false)
define_attribute(:url, RubyXL::ST_Xstring)
define_attribute(:post, RubyXL::ST_Xstring)
define_attribute(:htmlTables, :bool, :default => false)
- define_attribute(:htmlFormat, ssml:ST_HtmlFmt, :default => "none")
+ define_attribute(:htmlFormat, ssml:ST_HtmlFmt, :default => 'none')
define_attribute(:editPage, RubyXL::ST_Xstring)
define_child_node(RubyXL::ConnectionTables)
define_element_name 'webPr'
end
# http://www.datypic.com/sc/ooxml/e-ssml_textField-1.html
class ConnectionTextField < OOXMLObject
- define_attribute(:type, RubyXL::ST_ExternalConnectionType, :default => "general")
+ define_attribute(:type, RubyXL::ST_ExternalConnectionType, :default => 'general')
define_attribute(:position, :uint, :default => 0)
end
# http://www.datypic.com/sc/ooxml/e-ssml_textFields-1.html
class ConnectionTextFields < OOXMLObject
@@ -81,23 +81,23 @@
end
# http://www.datypic.com/sc/ooxml/e-ssml_textPr-1.html
class TextImportSettings < OOXMLObject
define_attribute(:prompt, :bool, :default => true)
- define_attribute(:fileType, RubyXL::ST_FileType, :default => "win")
+ define_attribute(:fileType, RubyXL::ST_FileType, :default => 'win')
define_attribute(:codePage, :uint, :default => 1252)
define_attribute(:firstRow, :uint, :default => 1)
- define_attribute(:sourceFile, RubyXL::ST_Xstring, :default => "")
+ define_attribute(:sourceFile, RubyXL::ST_Xstring, :default => '')
define_attribute(:delimited, :bool, :default => true)
- define_attribute(:decimal, RubyXL::ST_Xstring, :default => ".")
- define_attribute(:thousands, RubyXL::ST_Xstring, :default => ",")
+ define_attribute(:decimal, RubyXL::ST_Xstring, :default => '.')
+ define_attribute(:thousands, RubyXL::ST_Xstring, :default => ',')
define_attribute(:tab, :bool, :default => true)
define_attribute(:space, :bool, :default => false)
define_attribute(:comma, :bool, :default => false)
define_attribute(:semicolon, :bool, :default => false)
define_attribute(:consecutive, :bool, :default => false)
- define_attribute(:qualifier, ssml:ST_Qualifier, :default => "doubleQuote")
+ define_attribute(:qualifier, ssml:ST_Qualifier, :default => 'doubleQuote')
define_attribute(:delimiter, RubyXL::ST_Xstring)
define_child_node(RubyXL::ConnectionTextFields)
define_element_name 'textPr'
@@ -105,11 +105,11 @@
# http://www.datypic.com/sc/ooxml/e-ssml_parameter-1.html
class QueryParameter < OOXMLObject
define_attribute(:name, RubyXL::ST_Xstring)
define_attribute(:sqlType, :int, :default => 0)
- define_attribute(:parameterType, RubyXL::ST_ParameterType, :default => "prompt")
+ define_attribute(:parameterType, RubyXL::ST_ParameterType, :default => 'prompt')
define_attribute(:refreshOnChange, :bool, :default => false)
define_attribute(:prompt, RubyXL::ST_Xstring)
define_attribute(:boolean, :bool)
define_attribute(:double, :double)
define_attribute(:integer, :int)
@@ -142,11 +142,11 @@
define_attribute(:deleted, :bool, :default => false)
define_attribute(:onlyUseConnectionFile, :bool, :default => false)
define_attribute(:background, :bool, :default => false)
define_attribute(:refreshOnLoad, :bool, :default => false)
define_attribute(:saveData, :bool, :default => false)
- define_attribute(:credentials, RubyXL::ST_CredMethod, :default => "integrated")
+ define_attribute(:credentials, RubyXL::ST_CredMethod, :default => 'integrated')
define_attribute(:singleSignOnId, RubyXL::ST_Xstring)
define_child_node(RubyXL::OdbcOleDbProperties)
define_child_node(RubyXL::OlapProperties)
define_child_node(RubyXL::WebQueryProperties)
@@ -157,11 +157,11 @@
define_element_name 'connection'
end
# http://www.datypic.com/sc/ooxml/e-ssml_connections.html
class Connections < OOXMLTopLevelObject
- CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml'
- REL_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections'
+ CONTENT_TYPE = 'application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml'.freeze
+ REL_TYPE = 'http://schemas.openxmlformats.org/officeDocument/2006/relationships/connections'.freeze
define_child_node(RubyXL::Connection, :collection => true, :accessor => :connections)
define_element_name 'connections'