Class: MetronomeSDK::Models::Commit::SpendTrackerAttributes

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

Overview

See Also:

  • MetronomeSDK::Models::Commit#spend_tracker_attributes

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

#initializeSpendTrackerAttributes

Returns a new instance of SpendTrackerAttributes.

Parameters:

  • counts_as_discounted: (Boolean)


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

def initialize: (counts_as_discounted: bool) -> void

Instance Attribute Details

#counts_as_discountedBoolean

If true, this commit is included in spend trackers with discounted set to DISCOUNTED_ONLY

Parameters:

  • value (Boolean)

Returns:

  • (Boolean)


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

required :counts_as_discounted, MetronomeSDK::Internal::Type::Boolean

Instance Method Details

#to_hash{ counts_as_discounted: bool }

Returns:

  • ({ counts_as_discounted: bool })


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

def to_hash: -> { counts_as_discounted: bool }