Class: Twilio::REST::Numbers::V1::PortingPortabilityListResponse
- Inherits:
-
InstanceListResource
- Object
- InstanceListResource
- Twilio::REST::Numbers::V1::PortingPortabilityListResponse
- Defined in:
- lib/twilio-ruby/rest/numbers/v1/porting_portability.rb,
lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
Instance Method Summary collapse
- #headers ⇒ Object
-
#initialize(version, payload, key, limit = :unset) ⇒ PortingPortabilityListResponse
constructor
A new instance of PortingPortabilityListResponse.
- #porting_portability ⇒ Object
- #porting_portability_instance ⇒ Object
- #status_code ⇒ Object
Constructor Details
#initialize(version, payload, key, limit = :unset) ⇒ PortingPortabilityListResponse
Returns a new instance of PortingPortabilityListResponse.
172 173 174 175 176 177 178 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_portability.rb', line 172 def initialize(version, payload, key) @porting_portability_instance = payload.body[key].map do |data| PortingPortabilityInstance.new(version, data) end @headers = payload.headers @status_code = payload.status_code end |
Instance Method Details
#headers ⇒ Object
265 266 267 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_portability.rb', line 265 def headers @headers end |
#porting_portability ⇒ Object
261 262 263 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_portability.rb', line 261 def porting_portability @porting_portability end |
#porting_portability_instance ⇒ Object
180 181 182 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_portability.rb', line 180 def porting_portability_instance @instance end |
#status_code ⇒ Object
269 270 271 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_portability.rb', line 269 def status_code @status_code end |