Method: Twilio::REST::Wireless::V1::SimContext::DataSessionPage#get_instance

Defined in:
lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb

#get_instance(payload) ⇒ DataSessionInstance

Build an instance of DataSessionInstance

Parameters:

  • payload (Hash)

    Payload response from the API

Returns:



149
150
151
# File 'lib/twilio-ruby/rest/wireless/v1/sim/data_session.rb', line 149

def get_instance(payload)
    DataSessionInstance.new(@version, payload, sim_sid: @solution[:sim_sid])
end