Class: Twilio::REST::Webhooks::V1::EdgeZoneInstance

Inherits:
InstanceResource show all
Defined in:
lib/twilio-ruby/rest/webhooks/v1/edge_zone.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload) ⇒ EdgeZoneInstance

Initialize the EdgeZoneInstance

Parameters:

  • version (Version) —

    Version that contains the resource

  • payload (Hash) —

    payload that contains response from Twilio

  • account_sid (String) —

    The SID of the Account that created this EdgeZone resource.

  • sid (String) —

    The SID of the Call resource to fetch.



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.

Returns:

  • (String) —

    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.

Returns:

  • (Array<EdgeLocation>) —

    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.

Returns:

  • (String) —

    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.

Returns:

  • (String) —

    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