Class: Twilio::REST::Webhooks::V1::EdgeZoneInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Webhooks::V1::EdgeZoneInstance
- Defined in:
- lib/twilio-ruby/rest/webhooks/v1/edge_zone.rb
Instance Method Summary collapse
-
#description ⇒ String
Routing guidance for this zone.
-
#edge_locations ⇒ Array<EdgeLocation>
PoPs currently active within this zone.
-
#friendly_name ⇒ String
Human-readable zone name.
-
#id ⇒ String
Stable zone identifier.
-
#initialize(version, payload) ⇒ EdgeZoneInstance
constructor
Initialize the EdgeZoneInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#to_s ⇒ Object
Provide a user friendly representation.
Constructor Details
#initialize(version, payload) ⇒ EdgeZoneInstance
Initialize the EdgeZoneInstance
265 266 267 268 269 270 271 272 273 274 275 276 277 |
# File 'lib/twilio-ruby/rest/webhooks/v1/edge_zone.rb', line 265 def initialize(version, payload ) apiV1Version = ApiV1Version.new version.domain, version super(apiV1Version) # Marshaled Properties @properties = { 'id' => payload['id'], 'friendly_name' => payload['friendly_name'], 'description' => payload['description'], 'edge_locations' => payload['edge_locations'], } end |
Instance Method Details
#description ⇒ String
Returns Routing guidance for this zone.
294 295 296 |
# File 'lib/twilio-ruby/rest/webhooks/v1/edge_zone.rb', line 294 def description @properties['description'] end |
#edge_locations ⇒ Array<EdgeLocation>
Returns PoPs currently active within this zone.
300 301 302 |
# File 'lib/twilio-ruby/rest/webhooks/v1/edge_zone.rb', line 300 def edge_locations @properties['edge_locations'] end |
#friendly_name ⇒ String
Returns Human-readable zone name.
288 289 290 |
# File 'lib/twilio-ruby/rest/webhooks/v1/edge_zone.rb', line 288 def friendly_name @properties['friendly_name'] end |
#id ⇒ String
Returns Stable zone identifier. Use this value in Settings.edgeZones.
282 283 284 |
# File 'lib/twilio-ruby/rest/webhooks/v1/edge_zone.rb', line 282 def id @properties['id'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
312 313 314 |
# File 'lib/twilio-ruby/rest/webhooks/v1/edge_zone.rb', line 312 def inspect "<Twilio.Webhooks.V1.EdgeZoneInstance>" end |
#to_s ⇒ Object
Provide a user friendly representation
306 307 308 |
# File 'lib/twilio-ruby/rest/webhooks/v1/edge_zone.rb', line 306 def to_s "<Twilio.Webhooks.V1.EdgeZoneInstance>" end |