Class: MetronomeSDK::Models::HierarchyConfiguration::ParentHierarchyConfiguration

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/hierarchy_configuration.rb

Defined Under Namespace

Classes: Child, ParentBehavior

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(contract_id: , customer_id: ) ⇒ Object

Parameters:

  • contract_id (String) (defaults to: )
  • customer_id (String) (defaults to: )


# File 'lib/metronome_sdk/models/hierarchy_configuration.rb', line 44


Instance Attribute Details

#childrenArray<MetronomeSDK::Models::HierarchyConfiguration::ParentHierarchyConfiguration::Child>

List of contracts that belong to this parent.



19
20
# File 'lib/metronome_sdk/models/hierarchy_configuration.rb', line 19

required :children,
-> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::HierarchyConfiguration::ParentHierarchyConfiguration::Child] }

#parent_behaviorMetronomeSDK::Models::HierarchyConfiguration::ParentHierarchyConfiguration::ParentBehavior?



25
26
# File 'lib/metronome_sdk/models/hierarchy_configuration.rb', line 25

optional :parent_behavior,
-> { MetronomeSDK::HierarchyConfiguration::ParentHierarchyConfiguration::ParentBehavior }