Class: YugabyteYSQL::CompositeCoder

Inherits:
Coder
  • Object
show all
Defined in:
lib/pg/coder.rb

Instance Method Summary collapse

Methods inherited from Coder

#==, #dup, #initialize, #inspect_short, #marshal_dump, #marshal_load

Constructor Details

This class inherits a constructor from YugabyteYSQL::Coder

Instance Method Details

#inspectObject



82
83
84
85
86
# File 'lib/pg/coder.rb', line 82

def inspect
  str = super
  str[-1,0] = " elements_type=#{elements_type.inspect} #{needs_quotation? ? 'needs' : 'no'} quotation"
  str
end

#to_hObject



74
75
76
77
78
79
80
# File 'lib/pg/coder.rb', line 74

def to_h
  { **super,
    elements_type: elements_type,
    needs_quotation: needs_quotation?,
    delimiter: delimiter,
  }
end