Method: OCI::LoadBalancer::Models::LoadBalancerProtocol#initialize

Defined in:
lib/oci/load_balancer/models/load_balancer_protocol.rb

#initialize(attributes = {}) ⇒ LoadBalancerProtocol

Initializes the object

Parameters:

  • attributes (Hash) (defaults to: {})

    Model attributes in the form of hash

Options Hash (attributes):

  • :name (String)

    The value to assign to the #name property



41
42
43
44
45
46
47
48
# File 'lib/oci/load_balancer/models/load_balancer_protocol.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.name = attributes[:'name'] if attributes[:'name']
end