Class: VoiceML::SipCredentialList
- Inherits:
-
Object
- Object
- VoiceML::SipCredentialList
- Defined in:
- lib/voiceml/models/sip.rb
Overview
SipCredentialList — ‘CL…`.
Constant Summary collapse
- ATTRIBUTES =
%w[ sid account_sid friendly_name date_created date_updated uri subresource_uris ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ SipCredentialList
constructor
A new instance of SipCredentialList.
Constructor Details
#initialize(attrs = {}) ⇒ SipCredentialList
Returns a new instance of SipCredentialList.
48 49 50 |
# File 'lib/voiceml/models/sip.rb', line 48 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
51 |
# File 'lib/voiceml/models/sip.rb', line 51 def self.from_hash(h); h.nil? ? nil : new(h); end |