Class: Telnyx::Models::ReputationData

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/telnyx/models/reputation_data.rb

Defined Under Namespace

Modules: SpamRisk

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(connection_score: nil, engagement_score: nil, last_refreshed_at: nil, maturity_score: nil, sentiment_score: nil, spam_category: nil, spam_risk: nil) ⇒ Object

Reputation snapshot for a phone number. Each metric is a 0–100 score; ‘spam_risk` is a coarse bucket. Field set may grow over time - read by key.

Parameters:

  • connection_score (Integer, nil) (defaults to: nil)
  • engagement_score (Integer, nil) (defaults to: nil)
  • last_refreshed_at (Time, nil) (defaults to: nil)
  • maturity_score (Integer, nil) (defaults to: nil)
  • sentiment_score (Integer, nil) (defaults to: nil)
  • spam_category (String, nil) (defaults to: nil)

    Category label from the reputation feed when the number is flagged.

  • spam_risk (Symbol, Telnyx::Models::ReputationData::SpamRisk, nil) (defaults to: nil)

    Overall spam-risk classification.



# File 'lib/telnyx/models/reputation_data.rb', line 43

Instance Attribute Details

#connection_scoreInteger?

Returns:

  • (Integer, nil)


9
# File 'lib/telnyx/models/reputation_data.rb', line 9

optional :connection_score, Integer, nil?: true

#engagement_scoreInteger?

Returns:

  • (Integer, nil)


14
# File 'lib/telnyx/models/reputation_data.rb', line 14

optional :engagement_score, Integer, nil?: true

#last_refreshed_atTime?

Returns:

  • (Time, nil)


19
# File 'lib/telnyx/models/reputation_data.rb', line 19

optional :last_refreshed_at, Time, nil?: true

#maturity_scoreInteger?

Returns:

  • (Integer, nil)


24
# File 'lib/telnyx/models/reputation_data.rb', line 24

optional :maturity_score, Integer, nil?: true

#sentiment_scoreInteger?

Returns:

  • (Integer, nil)


29
# File 'lib/telnyx/models/reputation_data.rb', line 29

optional :sentiment_score, Integer, nil?: true

#spam_categoryString?

Category label from the reputation feed when the number is flagged.

Returns:

  • (String, nil)


35
# File 'lib/telnyx/models/reputation_data.rb', line 35

optional :spam_category, String, nil?: true

#spam_riskSymbol, ...

Overall spam-risk classification.



41
# File 'lib/telnyx/models/reputation_data.rb', line 41

optional :spam_risk, enum: -> { Telnyx::ReputationData::SpamRisk }, nil?: true