Class: VoiceML::SipIpAccessControlList

Inherits:
Object
  • Object
show all
Defined in:
lib/voiceml/models/sip.rb

Overview

SipIpAccessControlList — ‘AL…`.

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

Constructor Details

#initialize(attrs = {}) ⇒ SipIpAccessControlList

Returns a new instance of SipIpAccessControlList.



93
94
95
# File 'lib/voiceml/models/sip.rb', line 93

def initialize(attrs = {})
  ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) }
end

Class Method Details

.from_hash(h) ⇒ Object



96
# File 'lib/voiceml/models/sip.rb', line 96

def self.from_hash(h); h.nil? ? nil : new(h); end