Class: WalShipper::Destination

Inherits:
OpenStruct show all
Includes:
WalShipper
Defined in:
lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/sample/wal_shipper.rb

Overview

An object that represents a single destination from the configuration file.

Constant Summary

Constants inherited from OpenStruct

OpenStruct::InspectKey, OpenStruct::VERSION

Instance Attribute Summary

Attributes inherited from OpenStruct

#table

Instance Method Summary collapse

Methods included from WalShipper

#log

Methods inherited from OpenStruct

#==, #[], #[]=, #delete_field, #dig, #each_pair, #encode_with, #eql?, #freeze, #hash, #init_with, #inspect, #marshal_dump, #to_h

Constructor Details

#initialize(dest, debug = false) ⇒ Destination

Create a new WalShipper::Destination object.



82
83
84
85
86
# File 'lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/pg-1.4.5/sample/wal_shipper.rb', line 82

def initialize( dest, debug=false )
	@debug = debug
	super( dest )
	self.validate
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class OpenStruct