Class: Revox::Models::CallPhoneHistoryResponse::PhoneHistory
Defined Under Namespace
Modules: LastOutcome
Classes: Campaign
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, name:) ⇒ Object
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
required :campaigns,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CallPhoneHistoryResponse::PhoneHistory::Campaign] }
required :count, Float
required :do_not_contact, Revox::Internal::Type::Boolean
required :hot, Revox::Internal::Type::Boolean
required :last_called_at, String, nil?: true
required :last_outcome,
enum: -> { Revox::Models::CallPhoneHistoryResponse::PhoneHistory::LastOutcome },
nil?: true
required :reached_human, Revox::Internal::Type::Boolean
class Campaign < Revox::Internal::Type::BaseModel
required :id, String
required :name, String
end
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
end
end
|
Instance Attribute Details
20
21
|
# File 'lib/revox/models/call_phone_history_response.rb', line 20
required :campaigns,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CallPhoneHistoryResponse::PhoneHistory::Campaign] }
|
#count ⇒ Float
26
|
# File 'lib/revox/models/call_phone_history_response.rb', line 26
required :count, Float
|
31
|
# File 'lib/revox/models/call_phone_history_response.rb', line 31
required :do_not_contact, Revox::Internal::Type::Boolean
|
#hot ⇒ Boolean
36
|
# File 'lib/revox/models/call_phone_history_response.rb', line 36
required :hot, Revox::Internal::Type::Boolean
|
#last_called_at ⇒ String?
41
|
# File 'lib/revox/models/call_phone_history_response.rb', line 41
required :last_called_at, String, nil?: true
|
#last_outcome ⇒ Symbol, ...
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_human ⇒ 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 ⇒ {
55
|
# File 'sig/revox/models/call_phone_history_response.rbs', line 55
def to_hash: -> {
|