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

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

Overview

PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.

Instance Method Summary collapse

Constructor Details

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

Initialize the ReplaceItemsInstance

Parameters:

  • version (Version)

    Version that contains the resource

  • payload (Hash)

    payload that contains response from Twilio

  • bundle_sid (String) (defaults to: nil)

    The unique string that we created to identify the Bundle resource.


93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb', line 93

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

Returns The SID of the Account that created the resource.

Returns:

  • (String)

    The SID of the Account that created the resource


119
120
121
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb', line 119

def 
  @properties['account_sid']
end

#date_createdTime

Returns The ISO 8601 date and time in GMT when the resource was created.

Returns:

  • (Time)

    The ISO 8601 date and time in GMT when the resource was created


161
162
163
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb', line 161

def date_created
  @properties['date_created']
end

#date_updatedTime

Returns The ISO 8601 date and time in GMT when the resource was last updated.

Returns:

  • (Time)

    The ISO 8601 date and time in GMT when the resource was last updated


167
168
169
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb', line 167

def date_updated
  @properties['date_updated']
end

#emailString

Returns The email address.

Returns:

  • (String)

    The email address


149
150
151
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb', line 149

def email
  @properties['email']
end

#friendly_nameString

Returns The string that you assigned to describe the resource.

Returns:

  • (String)

    The string that you assigned to describe the resource


131
132
133
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb', line 131

def friendly_name
  @properties['friendly_name']
end

#inspectObject

Provide a detailed, user friendly representation


179
180
181
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb', line 179

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

#regulation_sidString

Returns The unique string of a regulation.

Returns:

  • (String)

    The unique string of a regulation


125
126
127
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb', line 125

def regulation_sid
  @properties['regulation_sid']
end

#sidString

Returns The unique string that identifies the resource.

Returns:

  • (String)

    The unique string that identifies the resource


113
114
115
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb', line 113

def sid
  @properties['sid']
end

#statusreplace_items.Status

Returns The verification status of the Bundle resource.

Returns:

  • (replace_items.Status)

    The verification status of the Bundle resource


137
138
139
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb', line 137

def status
  @properties['status']
end

#status_callbackString

Returns The URL we call to inform your application of status changes.

Returns:

  • (String)

    The URL we call to inform your application of status changes


155
156
157
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb', line 155

def status_callback
  @properties['status_callback']
end

#to_sObject

Provide a user friendly representation


173
174
175
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb', line 173

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

#valid_untilTime

Returns The ISO 8601 date and time in GMT when the resource will be valid until.

Returns:

  • (Time)

    The ISO 8601 date and time in GMT when the resource will be valid until


143
144
145
# File 'lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb', line 143

def valid_until
  @properties['valid_until']
end