Class: Anthropic::Models::Organization::AnalyticsLinesOfCode

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/anthropic/models/organization/analytics_lines_of_code.rb,
sig/anthropic/models/organization/analytics_lines_of_code.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(added_count:, removed_count:) ⇒ AnalyticsLinesOfCode

Lines of code added and removed via Claude Code.

Parameters:

  • added_count (Integer) —

    Lines of code added

  • removed_count (Integer) —

    Lines of code removed

  • added_count: (Integer)
  • removed_count: (Integer)


# File 'lib/anthropic/models/organization/analytics_lines_of_code.rb', line 19

Instance Attribute Details

#added_count ⇒ Integer

Lines of code added

Parameters:

  • value (Integer)

Returns:

  • (Integer)


11
# File 'lib/anthropic/models/organization/analytics_lines_of_code.rb', line 11

required :added_count, Integer

#removed_count ⇒ Integer

Lines of code removed

Parameters:

  • value (Integer)

Returns:

  • (Integer)


17
# File 'lib/anthropic/models/organization/analytics_lines_of_code.rb', line 17

required :removed_count, Integer

Instance Method Details

#to_hash ⇒ { added_count: Integer, removed_count: Integer }

Returns:

  • ({ added_count: Integer, removed_count: Integer })


14
# File 'sig/anthropic/models/organization/analytics_lines_of_code.rbs', line 14

def to_hash: -> { added_count: Integer, removed_count: Integer }