Class: PG::Replication::PGOutput::Tuple

Inherits:
Data
  • Object
show all
Defined in:
lib/pg/replication/pg_output.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data

Returns:

  • (Object)

    the current value of data



16
17
18
# File 'lib/pg/replication/pg_output.rb', line 16

def data
  @data
end

#typeObject (readonly)

Returns the value of attribute type

Returns:

  • (Object)

    the current value of type



16
17
18
# File 'lib/pg/replication/pg_output.rb', line 16

def type
  @type
end

Instance Method Details

#binary?Boolean

Returns:

  • (Boolean)


21
22
23
# File 'lib/pg/replication/pg_output.rb', line 21

def binary?
  type == "b"
end

#text?Boolean

Returns:

  • (Boolean)


17
18
19
# File 'lib/pg/replication/pg_output.rb', line 17

def text?
  type == "t"
end

#toast?Boolean

Returns:

  • (Boolean)


25
26
27
# File 'lib/pg/replication/pg_output.rb', line 25

def toast?
  type == "u"
end