Class: Twilio::REST::Numbers::V2::RegulatoryComplianceList::BundleContext::BundleCopyInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Numbers::V2::RegulatoryComplianceList::BundleContext::BundleCopyInstance
- Defined in:
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb
Overview
PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the Account that created the resource.
-
#date_created ⇒ Time
The ISO 8601 date and time in GMT when the resource was created.
-
#date_updated ⇒ Time
The ISO 8601 date and time in GMT when the resource was last updated.
-
#email ⇒ String
The email address.
-
#friendly_name ⇒ String
The string that you assigned to describe the resource.
-
#initialize(version, payload, bundle_sid: nil) ⇒ BundleCopyInstance
constructor
Initialize the BundleCopyInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#regulation_sid ⇒ String
The unique string of a regulation.
-
#sid ⇒ String
The unique string that identifies the resource.
-
#status ⇒ bundle_copy.Status
The verification status of the Bundle resource.
-
#status_callback ⇒ String
The URL we call to inform your application of status changes.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#valid_until ⇒ Time
The ISO 8601 date and time in GMT when the resource will be valid until.
Constructor Details
#initialize(version, payload, bundle_sid: nil) ⇒ BundleCopyInstance
Initialize the BundleCopyInstance
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 173 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_sid ⇒ String
Returns The SID of the Account that created the resource.
199 200 201 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 199 def account_sid @properties['account_sid'] end |
#date_created ⇒ Time
Returns The ISO 8601 date and time in GMT when the resource was created.
241 242 243 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 241 def date_created @properties['date_created'] end |
#date_updated ⇒ Time
Returns The ISO 8601 date and time in GMT when the resource was last updated.
247 248 249 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 247 def date_updated @properties['date_updated'] end |
#email ⇒ String
Returns The email address.
229 230 231 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 229 def email @properties['email'] end |
#friendly_name ⇒ String
Returns The string that you assigned to describe the resource.
211 212 213 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 211 def friendly_name @properties['friendly_name'] end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
259 260 261 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 259 def inspect "<Twilio.Numbers.V2.BundleCopyInstance>" end |
#regulation_sid ⇒ String
Returns The unique string of a regulation.
205 206 207 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 205 def regulation_sid @properties['regulation_sid'] end |
#sid ⇒ String
Returns The unique string that identifies the resource.
193 194 195 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 193 def sid @properties['sid'] end |
#status ⇒ bundle_copy.Status
Returns The verification status of the Bundle resource.
217 218 219 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 217 def status @properties['status'] end |
#status_callback ⇒ String
Returns The URL we call to inform your application of status changes.
235 236 237 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 235 def status_callback @properties['status_callback'] end |
#to_s ⇒ Object
Provide a user friendly representation
253 254 255 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 253 def to_s "<Twilio.Numbers.V2.BundleCopyInstance>" end |
#valid_until ⇒ Time
Returns The ISO 8601 date and time in GMT when the resource will be valid until.
223 224 225 |
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb', line 223 def valid_until @properties['valid_until'] end |