Class: Twilio::REST::Trusthub::V1::TrustProductsContext::TrustProductsEntityAssignmentsInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Trusthub::V1::TrustProductsContext::TrustProductsEntityAssignmentsInstance
- Defined in:
- lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.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.
-
#context ⇒ TrustProductsEntityAssignmentsContext
Generate an instance context for the instance, the context is capable of performing various actions.
-
#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 TrustProductsEntityAssignmentsInstance.
-
#fetch ⇒ TrustProductsEntityAssignmentsInstance
Fetch the TrustProductsEntityAssignmentsInstance.
-
#initialize(version, payload, trust_product_sid: nil, sid: nil) ⇒ TrustProductsEntityAssignmentsInstance
constructor
Initialize the TrustProductsEntityAssignmentsInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#object_sid ⇒ String
The SID of an object bag that holds information of the different items.
-
#sid ⇒ String
The unique string that we created to identify the Item Assignment resource.
-
#to_s ⇒ Object
Provide a user friendly representation.
-
#trust_product_sid ⇒ String
The unique string that we created to identify the TrustProduct resource.
-
#url ⇒ String
The absolute URL of the Identity resource.
Constructor Details
#initialize(version, payload, trust_product_sid: nil, sid: nil) ⇒ TrustProductsEntityAssignmentsInstance
Initialize the TrustProductsEntityAssignmentsInstance
240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb', line 240 def initialize(version, payload , trust_product_sid: nil, sid: nil) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'trust_product_sid' => payload['trust_product_sid'], 'account_sid' => payload['account_sid'], 'object_sid' => payload['object_sid'], 'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']), 'url' => payload['url'], } # Context @instance_context = nil @params = { 'trust_product_sid' => trust_product_sid || @properties['trust_product_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.
283 284 285 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb', line 283 def account_sid @properties['account_sid'] end |
#context ⇒ TrustProductsEntityAssignmentsContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
262 263 264 265 266 267 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb', line 262 def context unless @instance_context @instance_context = TrustProductsEntityAssignmentsContext.new(@version , @params['trust_product_sid'], @params['sid']) end @instance_context 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.
295 296 297 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb', line 295 def date_created @properties['date_created'] end |
#delete ⇒ Boolean
Delete the TrustProductsEntityAssignmentsInstance
308 309 310 311 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb', line 308 def delete context.delete end |
#fetch ⇒ TrustProductsEntityAssignmentsInstance
Fetch the TrustProductsEntityAssignmentsInstance
316 317 318 319 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb', line 316 def fetch context.fetch end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
330 331 332 333 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb', line 330 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Trusthub.V1.TrustProductsEntityAssignmentsInstance #{values}>" end |
#object_sid ⇒ String
Returns The SID of an object bag that holds information of the different items.
289 290 291 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb', line 289 def object_sid @properties['object_sid'] end |
#sid ⇒ String
Returns The unique string that we created to identify the Item Assignment resource.
271 272 273 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb', line 271 def sid @properties['sid'] end |
#to_s ⇒ Object
Provide a user friendly representation
323 324 325 326 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb', line 323 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Trusthub.V1.TrustProductsEntityAssignmentsInstance #{values}>" end |
#trust_product_sid ⇒ String
Returns The unique string that we created to identify the TrustProduct resource.
277 278 279 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb', line 277 def trust_product_sid @properties['trust_product_sid'] end |
#url ⇒ String
Returns The absolute URL of the Identity resource.
301 302 303 |
# File 'lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb', line 301 def url @properties['url'] end |