Class: MetronomeSDK::Models::V1::Contracts::RateCardUpdateParams::Alias

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/v1/contracts/rate_card_update_params.rb

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(name: , ending_before: nil, starting_at: nil) ⇒ Object

Parameters:

  • name (String) (defaults to: )
  • ending_before (Time) (defaults to: nil)
  • starting_at (Time) (defaults to: nil)


52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_update_params.rb', line 52

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

  # @!attribute ending_before
  #
  #   @return [Time, nil]
  optional :ending_before, Time

  # @!attribute starting_at
  #
  #   @return [Time, nil]
  optional :starting_at, Time

  # @!method initialize(name:, ending_before: nil, starting_at: nil)
  #   @param name [String]
  #   @param ending_before [Time]
  #   @param starting_at [Time]
end

Instance Attribute Details

#ending_beforeTime?

Returns:

  • (Time, nil)


61
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_update_params.rb', line 61

optional :ending_before, Time

#nameString

Returns:

  • (String)


56
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_update_params.rb', line 56

required :name, String

#starting_atTime?

Returns:

  • (Time, nil)


66
# File 'lib/metronome_sdk/models/v1/contracts/rate_card_update_params.rb', line 66

optional :starting_at, Time