Class: MetronomeSDK::Models::ScheduleDuration::ScheduleItem

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/schedule_duration.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(id: , amount: , ending_before: , starting_at: ) ⇒ Object

Parameters:

  • id (String) (defaults to: )
  • amount (Float) (defaults to: )
  • ending_before (Time) (defaults to: )
  • starting_at (Time) (defaults to: )


21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# File 'lib/metronome_sdk/models/schedule_duration.rb', line 21

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

  # @!attribute amount
  #
  #   @return [Float]
  required :amount, Float

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

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

  # @!method initialize(id:, amount:, ending_before:, starting_at:)
  #   @param id [String]
  #   @param amount [Float]
  #   @param ending_before [Time]
  #   @param starting_at [Time]
end

Instance Attribute Details

#amountFloat

Returns:

  • (Float)


30
# File 'lib/metronome_sdk/models/schedule_duration.rb', line 30

required :amount, Float

#ending_beforeTime

Returns:

  • (Time)


35
# File 'lib/metronome_sdk/models/schedule_duration.rb', line 35

required :ending_before, Time

#idString

Returns:

  • (String)


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

required :id, String

#starting_atTime

Returns:

  • (Time)


40
# File 'lib/metronome_sdk/models/schedule_duration.rb', line 40

required :starting_at, Time