Class: MetronomeSDK::Models::ContractWithoutAmendments::UsageFilter::Update

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/contract_without_amendments.rb,
sig/metronome_sdk/models/contract_without_amendments.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(group_key:, group_values:, starting_at:) ⇒ Object

Parameters:

  • group_key (String)
  • group_values (Array<String>)
  • starting_at (Time)


1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1370

class Update < MetronomeSDK::Internal::Type::BaseModel
  # @!attribute group_key
  #
  #   @return [String]
  required :group_key, String

  # @!attribute group_values
  #
  #   @return [Array<String>]
  required :group_values, MetronomeSDK::Internal::Type::ArrayOf[String]

  # @!attribute starting_at
  #
  #   @return [Time]
  required :starting_at, Time

  # @!method initialize(group_key:, group_values:, starting_at:)
  #   @param group_key [String]
  #   @param group_values [Array<String>]
  #   @param starting_at [Time]
end

Instance Attribute Details

#group_keyString

Parameters:

  • value (String)

Returns:

  • (String)


1374
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1374

required :group_key, String

#group_valuesArray<String>

Parameters:

  • value (::Array[String])

Returns:

  • (Array<String>)


1379
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1379

required :group_values, MetronomeSDK::Internal::Type::ArrayOf[String]

#starting_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


1384
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1384

required :starting_at, Time

Instance Method Details

#to_hash{

Returns:

  • ({)


1329
# File 'sig/metronome_sdk/models/contract_without_amendments.rbs', line 1329

def to_hash: -> {