Class: VoiceML::ConversationsV1Credential
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1Credential
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Overview
ConversationsV1Credential — CR... (push Credential — distinct from SipCredential).
Constant Summary collapse
- ATTRIBUTES =
%w[ sid account_sid friendly_name type sandbox date_created date_updated url ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ ConversationsV1Credential
constructor
A new instance of ConversationsV1Credential.
Constructor Details
#initialize(attrs = {}) ⇒ ConversationsV1Credential
Returns a new instance of ConversationsV1Credential.
177 178 179 |
# File 'lib/voiceml/models/conversations_v1.rb', line 177 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
180 |
# File 'lib/voiceml/models/conversations_v1.rb', line 180 def self.from_hash(h); h.nil? ? nil : new(h); end |