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 metrics

Parameters:

  • connection_score (Integer, nil) (defaults to: nil)

    Connection quality metric (0–100)

  • engagement_score (Integer, nil) (defaults to: nil)

    Engagement metric (0–100). Higher = more positive engagement

  • last_refreshed_at (Time, nil) (defaults to: nil)

    Timestamp of the last reputation data refresh

  • maturity_score (Integer, nil) (defaults to: nil)

    Maturity metric (0–100). Higher = more established number

  • sentiment_score (Integer, nil) (defaults to: nil)

    Sentiment metric (0–100). Higher = more positive sentiment

  • spam_category (String, nil) (defaults to: nil)

    Spam category classification (e.g., Telemarketing, Debt Collector)

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

    Overall spam risk level



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

Instance Attribute Details

#connection_scoreInteger?

Connection quality metric (0–100)

Returns:

  • (Integer, nil)


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

optional :connection_score, Integer, nil?: true

#engagement_scoreInteger?

Engagement metric (0–100). Higher = more positive engagement

Returns:

  • (Integer, nil)


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

optional :engagement_score, Integer, nil?: true

#last_refreshed_atTime?

Timestamp of the last reputation data refresh

Returns:

  • (Time, nil)


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

optional :last_refreshed_at, Time, nil?: true

#maturity_scoreInteger?

Maturity metric (0–100). Higher = more established number

Returns:

  • (Integer, nil)


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

optional :maturity_score, Integer, nil?: true

#sentiment_scoreInteger?

Sentiment metric (0–100). Higher = more positive sentiment

Returns:

  • (Integer, nil)


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

optional :sentiment_score, Integer, nil?: true

#spam_categoryString?

Spam category classification (e.g., Telemarketing, Debt Collector)

Returns:

  • (String, nil)


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

optional :spam_category, String, nil?: true

#spam_riskSymbol, ...

Overall spam risk level



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

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