Class: Twilio::REST::Numbers::V1::PortingPortInList::NumbersV1PortingAddress
- Inherits:
-
Object
- Object
- Twilio::REST::Numbers::V1::PortingPortInList::NumbersV1PortingAddress
- Defined in:
- lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#initialize(payload) ⇒ NumbersV1PortingAddress
constructor
A new instance of NumbersV1PortingAddress.
- #to_json(options = {}) ⇒ Object
Constructor Details
#initialize(payload) ⇒ NumbersV1PortingAddress
Returns a new instance of NumbersV1PortingAddress.
30 31 32 33 34 35 36 37 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 30 def initialize(payload) @street = payload["street"] @street_2 = payload["street_2"] @city = payload["city"] @state = payload["state"] @zip = payload["zip"] @country = payload["country"] end |
Instance Attribute Details
#city ⇒ Object
29 30 31 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 29 def city @city end |
#country ⇒ Object
29 30 31 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 29 def country @country end |
#state ⇒ Object
29 30 31 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 29 def state @state end |
#street ⇒ Object
29 30 31 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 29 def street @street end |
#street_2 ⇒ Object
29 30 31 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 29 def street_2 @street_2 end |
#zip ⇒ Object
29 30 31 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 29 def zip @zip end |
Instance Method Details
#to_json(options = {}) ⇒ Object
38 39 40 41 42 43 44 45 46 47 |
# File 'lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb', line 38 def to_json( = {}) { "street": @street, "street_2": @street_2, "city": @city, "state": @state, "zip": @zip, "country": @country, }.to_json() end |