Class: Revox::Models::CampaignLaunchResponse::Session

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

Overview

See Also:

  • Revox::Models::CampaignLaunchResponse#session

Defined Under Namespace

Modules: CreatedAt, EndedAt, OutcomeFilter, Status Classes: InFlightCall

Instance Attribute Summary collapse

Class Method 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:, campaign_id:, connected_count:, created_at:, current_call_id:, dialed_count:, ended_at:, in_flight_calls:, outcome_filter:, status:, total_targets:) ⇒ Object

Parameters:



# File 'lib/revox/models/campaign_launch_response.rb', line 109

Instance Attribute Details

#campaign_idString

Parameters:

  • value (String)

Returns:

  • (String)


60
# File 'lib/revox/models/campaign_launch_response.rb', line 60

required :campaign_id, String

#connected_countFloat

Parameters:

  • value (Float)

Returns:

  • (Float)


65
# File 'lib/revox/models/campaign_launch_response.rb', line 65

required :connected_count, Float

#created_atTime, Object

Parameters:

  • value (Revox::Models::CampaignLaunchResponse::Session::created_at)

Returns:

  • (Time, Object)


70
# File 'lib/revox/models/campaign_launch_response.rb', line 70

required :created_at, union: -> { Revox::Models::CampaignLaunchResponse::Session::CreatedAt }

#current_call_idString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


75
# File 'lib/revox/models/campaign_launch_response.rb', line 75

required :current_call_id, String, nil?: true

#dialed_countFloat

Parameters:

  • value (Float)

Returns:

  • (Float)


80
# File 'lib/revox/models/campaign_launch_response.rb', line 80

required :dialed_count, Float

#ended_atTime, ...

Parameters:

  • value (Revox::Models::CampaignLaunchResponse::Session::ended_at, nil)

Returns:

  • (Time, Object, nil)


85
# File 'lib/revox/models/campaign_launch_response.rb', line 85

required :ended_at, union: -> { Revox::Models::CampaignLaunchResponse::Session::EndedAt }, nil?: true

#idString

Parameters:

  • value (String)

Returns:

  • (String)


55
# File 'lib/revox/models/campaign_launch_response.rb', line 55

required :id, String

#in_flight_callsArray<Revox::Models::CampaignLaunchResponse::Session::InFlightCall>



90
91
# File 'lib/revox/models/campaign_launch_response.rb', line 90

required :in_flight_calls,
-> { Revox::Internal::Type::ArrayOf[Revox::Models::CampaignLaunchResponse::Session::InFlightCall] }

#outcome_filterArray<Symbol, Revox::Models::CampaignLaunchResponse::Session::OutcomeFilter>

Parameters:

  • value (::Array[Revox::Models::CampaignLaunchResponse::Session::outcome_filter])

Returns:



96
97
# File 'lib/revox/models/campaign_launch_response.rb', line 96

required :outcome_filter,
-> { Revox::Internal::Type::ArrayOf[enum: Revox::Models::CampaignLaunchResponse::Session::OutcomeFilter] }

#statusSymbol, Revox::Models::CampaignLaunchResponse::Session::Status

Parameters:

  • value (Revox::Models::CampaignLaunchResponse::Session::status)

Returns:



102
# File 'lib/revox/models/campaign_launch_response.rb', line 102

required :status, enum: -> { Revox::Models::CampaignLaunchResponse::Session::Status }

#total_targetsFloat

Parameters:

  • value (Float)

Returns:

  • (Float)


107
# File 'lib/revox/models/campaign_launch_response.rb', line 107

required :total_targets, Float

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/revox/models/campaign_launch_response.rb', line 3870

.variantsArray(Time, Object)

Returns:

  • (Array(Time, Object))


# File 'lib/revox/models/campaign_launch_response.rb', line 130

Instance Method Details

#to_hash{

Returns:

  • ({)


108
# File 'sig/revox/models/campaign_launch_response.rbs', line 108

def to_hash: -> {