Class: Telnyx::Models::AI::NodePosition
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Telnyx::Models::AI::NodePosition
- Defined in:
- lib/telnyx/models/ai/node_position.rb
Instance Attribute Summary collapse
-
#x ⇒ Float
Horizontal coordinate in the authoring canvas.
-
#y_ ⇒ Float
Vertical coordinate in the authoring canvas.
Instance Method Summary collapse
-
#initialize(x:, y_:) ⇒ Object
constructor
2D coordinates for a node, used by authoring UIs to lay out the graph.
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(x:, y_:) ⇒ Object
2D coordinates for a node, used by authoring UIs to lay out the graph.
Purely a presentation aid. The runtime ignores ‘position`; it round-trips through the API so frontends can persist the graph layout customers arrange in the editor.
|
|
# File 'lib/telnyx/models/ai/node_position.rb', line 19
|
Instance Attribute Details
#x ⇒ Float
Horizontal coordinate in the authoring canvas.
11 |
# File 'lib/telnyx/models/ai/node_position.rb', line 11 required :x, Float |
#y_ ⇒ Float
Vertical coordinate in the authoring canvas.
17 |
# File 'lib/telnyx/models/ai/node_position.rb', line 17 required :y_, Float, api_name: :y |