Class: VoiceML::VoiceV1IpRecord
- Inherits:
-
Object
- Object
- VoiceML::VoiceV1IpRecord
- Defined in:
- lib/voiceml/models/voice_v1.rb
Overview
VoiceV1IpRecord — IL....
Constant Summary collapse
- ATTRIBUTES =
%w[ account_sid sid friendly_name ip_address cidr_prefix_length date_created date_updated url ].freeze
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(attrs = {}) ⇒ VoiceV1IpRecord
constructor
A new instance of VoiceV1IpRecord.
Constructor Details
#initialize(attrs = {}) ⇒ VoiceV1IpRecord
Returns a new instance of VoiceV1IpRecord.
40 41 42 |
# File 'lib/voiceml/models/voice_v1.rb', line 40 def initialize(attrs = {}) ATTRIBUTES.each { |f| instance_variable_set("@#{f}", attrs[f] || attrs[f.to_sym]) } end |
Class Method Details
.from_hash(h) ⇒ Object
43 |
# File 'lib/voiceml/models/voice_v1.rb', line 43 def self.from_hash(h); h.nil? ? nil : new(h); end |