Class: Twilio::REST::Trusthub::V1::CustomerProfilesContext::CustomerProfilesEvaluationsInstance
- Inherits:
-
InstanceResource
- Object
- InstanceResource
- Twilio::REST::Trusthub::V1::CustomerProfilesContext::CustomerProfilesEvaluationsInstance
- Defined in:
- lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb
Instance Method Summary collapse
-
#account_sid ⇒ String
The SID of the [Account](www.twilio.com/docs/iam/api/account) that created the customer_profile resource.
-
#context ⇒ CustomerProfilesEvaluationsContext
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 customer_profile resource.
- #date_created ⇒ Time
-
#fetch ⇒ CustomerProfilesEvaluationsInstance
Fetch the CustomerProfilesEvaluationsInstance.
-
#initialize(version, payload, customer_profile_sid: nil, sid: nil) ⇒ CustomerProfilesEvaluationsInstance
constructor
Initialize the CustomerProfilesEvaluationsInstance.
-
#inspect ⇒ Object
Provide a detailed, user friendly representation.
-
#policy_sid ⇒ String
The unique string of a policy that is associated to the customer_profile resource.
-
#results ⇒ Array<Hash>
The results of the Evaluation which includes the valid and invalid attributes.
-
#sid ⇒ String
The unique string that identifies the Evaluation resource.
- #status ⇒ Status
-
#to_s ⇒ Object
Provide a user friendly representation.
- #url ⇒ String
Constructor Details
#initialize(version, payload, customer_profile_sid: nil, sid: nil) ⇒ CustomerProfilesEvaluationsInstance
Initialize the CustomerProfilesEvaluationsInstance
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 237 def initialize(version, payload , customer_profile_sid: nil, sid: nil) super(version) # Marshaled Properties @properties = { 'sid' => payload['sid'], 'account_sid' => payload['account_sid'], 'policy_sid' => payload['policy_sid'], 'customer_profile_sid' => payload['customer_profile_sid'], 'status' => payload['status'], 'results' => payload['results'], '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 customer_profile resource.
276 277 278 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 276 def account_sid @properties['account_sid'] end |
#context ⇒ CustomerProfilesEvaluationsContext
Generate an instance context for the instance, the context is capable of performing various actions. All instance actions are proxied to the context
261 262 263 264 265 266 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 261 def context unless @instance_context @instance_context = CustomerProfilesEvaluationsContext.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 customer_profile resource.
288 289 290 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 288 def customer_profile_sid @properties['customer_profile_sid'] end |
#date_created ⇒ Time
306 307 308 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 306 def date_created @properties['date_created'] end |
#fetch ⇒ CustomerProfilesEvaluationsInstance
Fetch the CustomerProfilesEvaluationsInstance
319 320 321 322 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 319 def fetch context.fetch end |
#inspect ⇒ Object
Provide a detailed, user friendly representation
333 334 335 336 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 333 def inspect values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Trusthub.V1.CustomerProfilesEvaluationsInstance #{values}>" end |
#policy_sid ⇒ String
Returns The unique string of a policy that is associated to the customer_profile resource.
282 283 284 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 282 def policy_sid @properties['policy_sid'] end |
#results ⇒ Array<Hash>
Returns The results of the Evaluation which includes the valid and invalid attributes.
300 301 302 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 300 def results @properties['results'] end |
#sid ⇒ String
Returns The unique string that identifies the Evaluation resource.
270 271 272 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 270 def sid @properties['sid'] end |
#status ⇒ Status
294 295 296 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 294 def status @properties['status'] end |
#to_s ⇒ Object
Provide a user friendly representation
326 327 328 329 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 326 def to_s values = @params.map{|k, v| "#{k}: #{v}"}.join(" ") "<Twilio.Trusthub.V1.CustomerProfilesEvaluationsInstance #{values}>" end |
#url ⇒ String
312 313 314 |
# File 'lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_evaluations.rb', line 312 def url @properties['url'] end |