class ActiveRecord::ConnectionAdapters::SQLServer::Type::Data
Attributes
type[R]
value[R]
Public Class Methods
new(value, type)
click to toggle source
# File lib/active_record/connection_adapters/sqlserver/type/data.rb, line 9 def initialize(value, type) @value, @type = value, type end
Public Instance Methods
eql?(other)
click to toggle source
# File lib/active_record/connection_adapters/sqlserver/type/data.rb, line 26 def eql?(other) self.class == other.class && self.value == other.value end
Also aliased as: ==
inspect()
click to toggle source
# File lib/active_record/connection_adapters/sqlserver/type/data.rb, line 22 def inspect @value.inspect end
quoted()
click to toggle source
# File lib/active_record/connection_adapters/sqlserver/type/data.rb, line 13 def quoted type.quoted(@value) end
to_s()
click to toggle source
# File lib/active_record/connection_adapters/sqlserver/type/data.rb, line 17 def to_s @value end
Also aliased as: to_str