Class: MetronomeSDK::Models::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/commit.rb,
sig/metronome_sdk/models/commit.rbs

Defined Under Namespace

Modules: Type

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(amount:, segment_id:, timestamp:, type:) ⇒ Object

Parameters:



# File 'lib/metronome_sdk/models/commit.rb', line 645

Instance Attribute Details

#amountFloat

Parameters:

  • value (Float)

Returns:

  • (Float)


627
# File 'lib/metronome_sdk/models/commit.rb', line 627

required :amount, Float

#segment_idString

Parameters:

  • value (String)

Returns:

  • (String)


632
# File 'lib/metronome_sdk/models/commit.rb', line 632

required :segment_id, String

#timestampTime

Parameters:

  • value (Time)

Returns:

  • (Time)


637
# File 'lib/metronome_sdk/models/commit.rb', line 637

required :timestamp, Time

#typeSymbol, MetronomeSDK::Models::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::Type

Parameters:

  • value (MetronomeSDK::Models::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::type_)

Returns:



642
643
# File 'lib/metronome_sdk/models/commit.rb', line 642

required :type,
enum: -> { MetronomeSDK::Commit::Ledger::PrepaidCommitSeatBasedAdjustmentLedgerEntry::Type }

Instance Method Details

#to_hash{

Returns:

  • ({)


624
# File 'sig/metronome_sdk/models/commit.rbs', line 624

def to_hash: -> {