Class: VoiceML::VoiceV1ConnectionPolicyTarget

Inherits:
Object
  • Object
show all
Defined in:
lib/voiceml/models/voice_v1.rb

Overview

VoiceV1ConnectionPolicyTarget — NE.... Scoped to a parent ConnectionPolicy.

Constant Summary collapse

ATTRIBUTES =
%w[
  account_sid connection_policy_sid sid friendly_name target priority weight
  enabled date_created date_updated url
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ VoiceV1ConnectionPolicyTarget

Returns a new instance of VoiceV1ConnectionPolicyTarget.



128
129
130
# File 'lib/voiceml/models/voice_v1.rb', line 128

def initialize(attrs = {})
  ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) }
end

Class Method Details

.from_hash(h) ⇒ Object



131
# File 'lib/voiceml/models/voice_v1.rb', line 131

def self.from_hash(h); h.nil? ? nil : new(h); end