Class: Twilio::REST::Supersim::V1::SimContext::SimIpAddressInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Supersim::V1::SimContext::SimIpAddressInstance
- Defined in:
- lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb
Instance Method Summary collapse
-
#initialize(version, payload, sim_sid: nil) ⇒ SimIpAddressInstance
constructor
Initialize the SimIpAddressInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#ip_address ⇒ String
IP address assigned to the given Super SIM.
- #ip_address_version ⇒ IpAddressVersion
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload, sim_sid: nil) ⇒ SimIpAddressInstance
Initialize the SimIpAddressInstance
169 170 171 172 173 174 175 176 177 |
# File 'lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb', line 169 def initialize(version, payload , sim_sid: nil) super(version) # Marshaled Properties @properties = { 'ip_address' => payload['ip_address'], 'ip_address_version' => payload['ip_address_version'], } end |
Instance Method Details
#inspect ⇒ Object
Provide a detailed, user friendly representation
200 201 202 |
# File 'lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb', line 200 def inspect "<Twilio.Supersim.V1.SimIpAddressInstance>" end |
#ip_address ⇒ String
Returns IP address assigned to the given Super SIM.
182 183 184 |
# File 'lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb', line 182 def ip_address @properties['ip_address'] end |
#ip_address_version ⇒ IpAddressVersion
188 189 190 |
# File 'lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb', line 188 def ip_address_version @properties['ip_address_version'] end |
#to_s ⇒ Object
Provide a user friendly representation
194 195 196 |
# File 'lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb', line 194 def to_s "<Twilio.Supersim.V1.SimIpAddressInstance>" end |