Class: VoiceML::VoiceV1ByocTrunk
- Inherits:
-
Object
- Object
- VoiceML::VoiceV1ByocTrunk
- Defined in:
- lib/voiceml/models/voice_v1.rb
Overview
VoiceV1ByocTrunk — BY.... Bring-your-own-carrier trunk.
Constant Summary collapse
- ATTRIBUTES =
%w[ account_sid sid friendly_name voice_url voice_method voice_fallback_url voice_fallback_method status_callback_url status_callback_method cnam_lookup_enabled connection_policy_sid from_domain_sid date_created date_updated url ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ VoiceV1ByocTrunk
constructor
A new instance of VoiceV1ByocTrunk.
Constructor Details
#initialize(attrs = {}) ⇒ VoiceV1ByocTrunk
Returns a new instance of VoiceV1ByocTrunk.
85 86 87 |
# File 'lib/voiceml/models/voice_v1.rb', line 85 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
88 |
# File 'lib/voiceml/models/voice_v1.rb', line 88 def self.from_hash(h); h.nil? ? nil : new(h); end |