Class: Revox::Models::CampaignUpdateResponse::Campaign::Assistant::PromptFlow::Edge

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

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(edges:, nodes:) ⇒ Object



1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
# File 'lib/revox/models/campaign_update_response.rb', line 1199

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

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

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

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

Instance Attribute Details

#idString

Parameters:

  • value (String)

Returns:

  • (String)


1203
# File 'lib/revox/models/campaign_update_response.rb', line 1203

required :id, String

#sourceString

Parameters:

  • value (String)

Returns:

  • (String)


1208
# File 'lib/revox/models/campaign_update_response.rb', line 1208

required :source, String

#targetString

Parameters:

  • value (String)

Returns:

  • (String)


1213
# File 'lib/revox/models/campaign_update_response.rb', line 1213

required :target, String

Instance Method Details

#to_hash{ id: String, source: String, target: String }

Returns:

  • ({ id: String, source: String, target: String })


953
# File 'sig/revox/models/campaign_update_response.rbs', line 953

def to_hash: -> { id: String, source: String, target: String }