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
166 167 168 169 170 171 172 173 174 |
# File 'lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb', line 166 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
197 198 199 |
# File 'lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb', line 197 def inspect "<Twilio.Supersim.V1.SimIpAddressInstance>" end |
#ip_address ⇒ String
Returns IP address assigned to the given Super SIM.
179 180 181 |
# File 'lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb', line 179 def ip_address @properties['ip_address'] end |
#ip_address_version ⇒ IpAddressVersion
185 186 187 |
# File 'lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb', line 185 def ip_address_version @properties['ip_address_version'] end |
#to_s ⇒ Object
Provide a user friendly representation
191 192 193 |
# File 'lib/twilio-ruby/rest/supersim/v1/sim/sim_ip_address.rb', line 191 def to_s "<Twilio.Supersim.V1.SimIpAddressInstance>" end |