Class: VoiceML::ConversationsV1ServiceBinding
- Inherits:
-
Object
- Object
- VoiceML::ConversationsV1ServiceBinding
- Defined in:
- lib/voiceml/models/conversations_v1.rb
Overview
ConversationsV1ServiceBinding — BS..., push-notification binding (read/delete only).
Constant Summary collapse
- ATTRIBUTES =
%w[ sid account_sid chat_service_sid credential_sid date_created date_updated endpoint identity binding_type message_types url ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ ConversationsV1ServiceBinding
constructor
A new instance of ConversationsV1ServiceBinding.
Constructor Details
#initialize(attrs = {}) ⇒ ConversationsV1ServiceBinding
Returns a new instance of ConversationsV1ServiceBinding.
556 557 558 |
# File 'lib/voiceml/models/conversations_v1.rb', line 556 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
559 |
# File 'lib/voiceml/models/conversations_v1.rb', line 559 def self.from_hash(h); h.nil? ? nil : new(h); end |