Class: Twilio::REST::Numbers::V2::RegulatoryComplianceList::BundleContext::BundleCopyInstance

Inherits:
InstanceResource
  • Object
show all
Defined in:
lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, payload, bundle_sid: nil) ⇒ BundleCopyInstance

Initialize the BundleCopyInstance



312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 312

def initialize(version, payload , bundle_sid: nil)
    super(version)
    
    
    # Marshaled Properties
    @properties = { 
        'sid' => payload['sid'],
        'account_sid' => payload['account_sid'],
        'regulation_sid' => payload['regulation_sid'],
        'friendly_name' => payload['friendly_name'],
        'status' => payload['status'],
        'valid_until' => Twilio.deserialize_iso8601_datetime(payload['valid_until']),
        'email' => payload['email'],
        'status_callback' => payload['status_callback'],
        'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
        'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
    }
end

Instance Method Details

#account_sidString



340
341
342
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 340

def 
    @properties['account_sid']
end

#date_createdTime



382
383
384
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 382

def date_created
    @properties['date_created']
end

#date_updatedTime



388
389
390
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 388

def date_updated
    @properties['date_updated']
end

#emailString



370
371
372
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 370

def email
    @properties['email']
end

#friendly_nameString



352
353
354
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 352

def friendly_name
    @properties['friendly_name']
end

#inspectObject

Provide a detailed, user friendly representation



400
401
402
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 400

def inspect
    "<Twilio.Numbers.V2.BundleCopyInstance>"
end

#regulation_sidString



346
347
348
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 346

def regulation_sid
    @properties['regulation_sid']
end

#sidString



334
335
336
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 334

def sid
    @properties['sid']
end

#statusStatus



358
359
360
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 358

def status
    @properties['status']
end

#status_callbackString



376
377
378
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 376

def status_callback
    @properties['status_callback']
end

#to_sObject

Provide a user friendly representation



394
395
396
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 394

def to_s
    "<Twilio.Numbers.V2.BundleCopyInstance>"
end

#valid_untilTime



364
365
366
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 364

def valid_until
    @properties['valid_until']
end