Class: VoiceML::SipCredential
- Inherits:
-
Object
- Object
- VoiceML::SipCredential
- Defined in:
- lib/voiceml/models/sip.rb
Overview
SipCredential — ‘CR…`. Password is write-only (never returned).
Constant Summary collapse
- ATTRIBUTES =
%w[ sid account_sid credential_list_sid username date_created date_updated uri ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ SipCredential
constructor
A new instance of SipCredential.
Constructor Details
#initialize(attrs = {}) ⇒ SipCredential
Returns a new instance of SipCredential.
70 71 72 |
# File 'lib/voiceml/models/sip.rb', line 70 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
73 |
# File 'lib/voiceml/models/sip.rb', line 73 def self.from_hash(h); h.nil? ? nil : new(h); end |