Class: Revox::Models::CallPhoneHistoryResponse::PhoneHistory

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/revox/models/call_phone_history_response.rb,
sig/revox/models/call_phone_history_response.rbs

Defined Under Namespace

Modules: LastOutcome Classes: Campaign

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(id:, name:) ⇒ Object

Parameters:

  • id (String)
  • name (String)


16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
# File 'lib/revox/models/call_phone_history_response.rb', line 16

class PhoneHistory < Revox::Internal::Type::BaseModel
  # @!attribute campaigns
  #
  #   @return [Array<Revox::Models::CallPhoneHistoryResponse::PhoneHistory::Campaign>]
  required :campaigns,
           -> { Revox::Internal::Type::ArrayOf[Revox::Models::CallPhoneHistoryResponse::PhoneHistory::Campaign] }

  # @!attribute count
  #
  #   @return [Float]
  required :count, Float

  # @!attribute do_not_contact
  #
  #   @return [Boolean]
  required :do_not_contact, Revox::Internal::Type::Boolean

  # @!attribute hot
  #
  #   @return [Boolean]
  required :hot, Revox::Internal::Type::Boolean

  # @!attribute last_called_at
  #
  #   @return [String, nil]
  required :last_called_at, String, nil?: true

  # @!attribute last_outcome
  #
  #   @return [Symbol, Revox::Models::CallPhoneHistoryResponse::PhoneHistory::LastOutcome, nil]
  required :last_outcome,
           enum: -> { Revox::Models::CallPhoneHistoryResponse::PhoneHistory::LastOutcome },
           nil?: true

  # @!attribute reached_human
  #
  #   @return [Boolean]
  required :reached_human, Revox::Internal::Type::Boolean

  # @!method initialize(campaigns:, count:, do_not_contact:, hot:, last_called_at:, last_outcome:, reached_human:)
  #   @param campaigns [Array<Revox::Models::CallPhoneHistoryResponse::PhoneHistory::Campaign>]
  #   @param count [Float]
  #   @param do_not_contact [Boolean]
  #   @param hot [Boolean]
  #   @param last_called_at [String, nil]
  #   @param last_outcome [Symbol, Revox::Models::CallPhoneHistoryResponse::PhoneHistory::LastOutcome, nil]
  #   @param reached_human [Boolean]

  class Campaign < Revox::Internal::Type::BaseModel
    # @!attribute id
    #
    #   @return [String]
    required :id, String

    # @!attribute name
    #
    #   @return [String]
    required :name, String

    # @!method initialize(id:, name:)
    #   @param id [String]
    #   @param name [String]
  end

  # @see Revox::Models::CallPhoneHistoryResponse::PhoneHistory#last_outcome
  module LastOutcome
    extend Revox::Internal::Type::Enum

    NOT_INTERESTED = :not_interested
    INTERESTED = :interested
    COMPLETED = :completed
    REQUESTED_CALLBACK_LATER = :requested_callback_later
    REQUESTED_CALLBACK_NEW_NUMBER = :requested_callback_new_number
    DO_NOT_CONTACT = :do_not_contact
    AI_AVERSE = :ai_averse

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#campaignsArray<Revox::Models::CallPhoneHistoryResponse::PhoneHistory::Campaign>



20
21
# File 'lib/revox/models/call_phone_history_response.rb', line 20

required :campaigns,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CallPhoneHistoryResponse::PhoneHistory::Campaign] }

#countFloat

Parameters:

  • value (Float)

Returns:

  • (Float)


26
# File 'lib/revox/models/call_phone_history_response.rb', line 26

required :count, Float

#do_not_contactBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


31
# File 'lib/revox/models/call_phone_history_response.rb', line 31

required :do_not_contact, Revox::Internal::Type::Boolean

#hotBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


36
# File 'lib/revox/models/call_phone_history_response.rb', line 36

required :hot, Revox::Internal::Type::Boolean

#last_called_atString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


41
# File 'lib/revox/models/call_phone_history_response.rb', line 41

required :last_called_at, String, nil?: true

#last_outcomeSymbol, ...

Parameters:

  • value (Revox::Models::CallPhoneHistoryResponse::PhoneHistory::last_outcome, nil)

Returns:



46
47
48
# File 'lib/revox/models/call_phone_history_response.rb', line 46

required :last_outcome,
enum: -> { Revox::Models::CallPhoneHistoryResponse::PhoneHistory::LastOutcome },
nil?: true

#reached_humanBoolean

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


53
# File 'lib/revox/models/call_phone_history_response.rb', line 53

required :reached_human, Revox::Internal::Type::Boolean

Instance Method Details

#to_hash{

Returns:

  • ({)


55
# File 'sig/revox/models/call_phone_history_response.rbs', line 55

def to_hash: -> {