Class: Twilio::REST::Trusthub::V1::CustomerProfilesContext::CustomerProfilesChannelEndpointAssignmentInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Trusthub::V1::CustomerProfilesContext::CustomerProfilesChannelEndpointAssignmentInstance
- Defined in:
- lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Item Assignment resource.
-
#channel_endpoint_sid ⇒ String
The SID of an channel endpoint.
-
#channel_endpoint_type ⇒ String
The type of channel endpoint.
-
#context ⇒ CustomerProfilesChannelEndpointAssignmentContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#customer_profile_sid ⇒ String
The unique string that we created to identify the CustomerProfile resource.
-
#date_created ⇒ Time
The date and time in GMT when the resource was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
-
#delete ⇒ Boolean
Delete the CustomerProfilesChannelEndpointAssignmentInstance.
-
#fetch ⇒ CustomerProfilesChannelEndpointAssignmentInstance
Fetch the CustomerProfilesChannelEndpointAssignmentInstance.
-
#initialize(version, payload, customer_profile_sid: nil, sid: nil) ⇒ CustomerProfilesChannelEndpointAssignmentInstance
constructor
Initialize the CustomerProfilesChannelEndpointAssignmentInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#sid ⇒ String
The unique string that we created to identify the Item Assignment resource.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#url ⇒ String
The absolute URL of the Identity resource.
Constructor Details
#initialize(version, payload, customer_profile_sid: nil, sid: nil) ⇒ CustomerProfilesChannelEndpointAssignmentInstance
Initialize the CustomerProfilesChannelEndpointAssignmentInstance
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 255 def initialize(version, payload , customer_profile_sid: nil, sid: nil) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'customer_profile_sid' => payload['customer_profile_sid'], 'account_sid' => payload['account_sid'], 'channel_endpoint_type' => payload['channel_endpoint_type'], 'channel_endpoint_sid' => payload['channel_endpoint_sid'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'url' => payload['url'], } # Context @instance_context = nil @params = { 'customer_profile_sid' => customer_profile_sid || @properties['customer_profile_sid'] ,'sid' => sid || @properties['sid'] , } end |
Instance Method Details
#account_sid ⇒ String
Returns The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the Item Assignment resource.
299 300 301 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 299 def account_sid @properties['account_sid'] end |
#channel_endpoint_sid ⇒ String
Returns The SID of an channel endpoint.
311 312 313 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 311 def channel_endpoint_sid @properties['channel_endpoint_sid'] end |
#channel_endpoint_type ⇒ String
Returns The type of channel endpoint. eg: phone-number.
305 306 307 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 305 def channel_endpoint_type @properties['channel_endpoint_type'] end |
#context ⇒ CustomerProfilesChannelEndpointAssignmentContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
278 279 280 281 282 283 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 278 def context unless @instance_context @instance_context = CustomerProfilesChannelEndpointAssignmentContext.new(@version , @params['customer_profile_sid'], @params['sid']) end @instance_context end |
#customer_profile_sid ⇒ String
Returns The unique string that we created to identify the CustomerProfile resource.
293 294 295 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 293 def customer_profile_sid @properties['customer_profile_sid'] end |
#date_created ⇒ Time
Returns The date and time in GMT when the resource was created specified in [ISO 8601](en.wikipedia.org/wiki/ISO_8601) format.
317 318 319 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 317 def date_created @properties['date_created'] end |
#delete ⇒ Boolean
Delete the CustomerProfilesChannelEndpointAssignmentInstance
330 331 332 333 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 330 def delete context.delete end |
#fetch ⇒ CustomerProfilesChannelEndpointAssignmentInstance
Fetch the CustomerProfilesChannelEndpointAssignmentInstance
338 339 340 341 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 338 def fetch context.fetch end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
352 353 354 355 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 352 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Trusthub.V1.CustomerProfilesChannelEndpointAssignmentInstance #{values}>" end |
#sid ⇒ String
Returns The unique string that we created to identify the Item Assignment resource.
287 288 289 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 287 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
345 346 347 348 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 345 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Trusthub.V1.CustomerProfilesChannelEndpointAssignmentInstance #{values}>" end |
#url ⇒ String
Returns The absolute URL of the Identity resource.
323 324 325 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb', line 323 def url @properties['url'] end |