Class: VoiceML::VoiceV1SourceIpMapping

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

Overview

VoiceV1SourceIpMapping — IB.... Binds an IpRecord to a SipDomain.

Constant Summary collapse

ATTRIBUTES =
%w[
  sid ip_record_sid sip_domain_sid date_created date_updated url
].freeze

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attrs = {}) ⇒ VoiceV1SourceIpMapping

Returns a new instance of VoiceV1SourceIpMapping.



61
62
63
# File 'lib/voiceml/models/voice_v1.rb', line 61

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

Class Method Details

.from_hash(h) ⇒ Object



64
# File 'lib/voiceml/models/voice_v1.rb', line 64

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