Class: PG::Replication::PGOutput::Tuple
- Inherits:
-
Data
- Object
- Data
- PG::Replication::PGOutput::Tuple
- Defined in:
- lib/pg/replication/pg_output.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data
16 17 18 |
# File 'lib/pg/replication/pg_output.rb', line 16 def data @data end |
#type ⇒ Object (readonly)
Returns the value of attribute type
16 17 18 |
# File 'lib/pg/replication/pg_output.rb', line 16 def type @type end |
Instance Method Details
#binary? ⇒ Boolean
21 22 23 |
# File 'lib/pg/replication/pg_output.rb', line 21 def binary? type == "b" end |
#text? ⇒ Boolean
17 18 19 |
# File 'lib/pg/replication/pg_output.rb', line 17 def text? type == "t" end |
#toast? ⇒ Boolean
25 26 27 |
# File 'lib/pg/replication/pg_output.rb', line 25 def toast? type == "u" end |