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



196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 196

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



223
224
225
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 223

def 
    @properties['account_sid']
end

#date_createdTime



265
266
267
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 265

def date_created
    @properties['date_created']
end

#date_updatedTime



271
272
273
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 271

def date_updated
    @properties['date_updated']
end

#emailString



253
254
255
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 253

def email
    @properties['email']
end

#friendly_nameString



235
236
237
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 235

def friendly_name
    @properties['friendly_name']
end

#inspectObject

Provide a detailed, user friendly representation



283
284
285
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 283

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

#regulation_sidString



229
230
231
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 229

def regulation_sid
    @properties['regulation_sid']
end

#sidString



217
218
219
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 217

def sid
    @properties['sid']
end

#statusStatus



241
242
243
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 241

def status
    @properties['status']
end

#status_callbackString



259
260
261
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 259

def status_callback
    @properties['status_callback']
end

#to_sObject

Provide a user friendly representation



277
278
279
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 277

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

#valid_untilTime



247
248
249
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 247

def valid_until
    @properties['valid_until']
end