class Piggly::Dumper::QualifiedName
Attributes
name[R]
schema[R]
Public Class Methods
new(schema, name)
click to toggle source
# File lib/piggly/dumper/qualified_name.rb, line 7 def initialize(schema, name) @schema, @name = schema, name end
Public Instance Methods
==(other)
click to toggle source
@return [Boolean]
# File lib/piggly/dumper/qualified_name.rb, line 30 def ==(other) self.to_s == other.to_s end
quote()
click to toggle source
@return [String]
# File lib/piggly/dumper/qualified_name.rb, line 12 def quote if @schema '"' + @schema + '"."' + @name + '"' else '"' + @name + '"' end end
to_s()
click to toggle source
@return [String]
# File lib/piggly/dumper/qualified_name.rb, line 21 def to_s if @schema @schema + "." + @name else @name end end