Method: OCI::Streaming::Models::ChangeStreamPoolCompartmentDetails#initialize
- Defined in:
- lib/oci/streaming/models/change_stream_pool_compartment_details.rb
#initialize(attributes = {}) ⇒ ChangeStreamPoolCompartmentDetails
Initializes the object
41 42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/oci/streaming/models/change_stream_pool_compartment_details.rb', line 41 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId'] raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id') self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id'] end |