Class: Twilio::REST::Supersim::V1::NetworkAccessProfileContext::NetworkAccessProfileNetworkListResponse

Inherits:
InstanceListResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb,
lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, key, limit = :unset) ⇒ NetworkAccessProfileNetworkListResponse

Returns a new instance of NetworkAccessProfileNetworkListResponse.

Parameters:



366
367
368
369
370
371
372
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 366

def initialize(version, payload, key)
   @network_access_profile_network_instance = payload.body[key].map do |data|
    NetworkAccessProfileNetworkInstance.new(version, data)
   end
   @headers = payload.headers
   @status_code = payload.status_code
end

Instance Method Details

#headersObject



459
460
461
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 459

def headers
  @headers
end

#network_access_profile_networkObject



455
456
457
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 455

def network_access_profile_network
    @network_access_profile_network
end

#network_access_profile_network_instanceObject



374
375
376
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 374

def network_access_profile_network_instance
    @instance
end

#status_codeObject



463
464
465
# File 'lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb', line 463

def status_code
  @status_code
end