Class: MethodRuby::Models::Entity::EntityIndividualResource::CreditScore::EntityCreditScore::Score

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/method_ruby/models/entity.rb,
sig/method_ruby/models/entity.rbs

Defined Under Namespace

Classes: Factor

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:, created_at:, entity_id:, scores:, status:, updated_at:, error: nil) ⇒ Object

Parameters:



15686
15687
15688
15689
15690
15691
15692
15693
15694
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711
15712
15713
15714
15715
15716
15717
15718
15719
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741
15742
15743
15744
15745
15746
15747
15748
15749
15750
# File 'lib/method_ruby/models/entity.rb', line 15686

class Score < MethodRuby::Internal::Type::BaseModel
  # @!attribute created_at
  #   Timestamp when this score was generated.
  #
  #   @return [Time]
  required :created_at, Time

  # @!attribute factors
  #   Factors affecting the credit score.
  #
  #   @return [Array<MethodRuby::Models::Entity::EntityIndividualResource::CreditScore::EntityCreditScore::Score::Factor>, nil]
  required :factors,
           -> {
             MethodRuby::Internal::Type::ArrayOf[MethodRuby::Entity::EntityIndividualResource::CreditScore::EntityCreditScore::Score::Factor]
           },
           nil?: true

  # @!attribute model
  #   The scoring model used.
  #
  #   @return [String, nil]
  required :model, String, nil?: true

  # @!attribute score
  #   The credit score value.
  #
  #   @return [Integer, nil]
  required :score, Integer, nil?: true

  # @!attribute source
  #   The source of the credit score.
  #
  #   @return [String, nil]
  required :source, String, nil?: true

  # @!method initialize(created_at:, factors:, model:, score:, source:)
  #   @param created_at [Time] Timestamp when this score was generated.
  #
  #   @param factors [Array<MethodRuby::Models::Entity::EntityIndividualResource::CreditScore::EntityCreditScore::Score::Factor>, nil] Factors affecting the credit score.
  #
  #   @param model [String, nil] The scoring model used.
  #
  #   @param score [Integer, nil] The credit score value.
  #
  #   @param source [String, nil] The source of the credit score.

  class Factor < MethodRuby::Internal::Type::BaseModel
    # @!attribute code
    #   Factor code.
    #
    #   @return [String, nil]
    optional :code, String, nil?: true

    # @!attribute description
    #   Human-readable description of the factor.
    #
    #   @return [String, nil]
    optional :description, String, nil?: true

    # @!method initialize(code: nil, description: nil)
    #   @param code [String, nil] Factor code.
    #
    #   @param description [String, nil] Human-readable description of the factor.
  end
end

Instance Attribute Details

#created_at ⇒ Time

Timestamp when this score was generated.

Parameters:

  • value (Time)

Returns:

  • (Time)


15691
# File 'lib/method_ruby/models/entity.rb', line 15691

required :created_at, Time

#factors ⇒ Array<MethodRuby::Models::Entity::EntityIndividualResource::CreditScore::EntityCreditScore::Score::Factor>?

Factors affecting the credit score.

Parameters:

  • value (::Array[MethodRuby::Entity::EntityIndividualResource::CreditScore::EntityCreditScore::Score::Factor], nil)

Returns:



15697
15698
15699
15700
15701
# File 'lib/method_ruby/models/entity.rb', line 15697

required :factors,
-> {
  MethodRuby::Internal::Type::ArrayOf[MethodRuby::Entity::EntityIndividualResource::CreditScore::EntityCreditScore::Score::Factor]
},
nil?: true

#model ⇒ String?

The scoring model used.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


15707
# File 'lib/method_ruby/models/entity.rb', line 15707

required :model, String, nil?: true

#score ⇒ Integer?

The credit score value.

Parameters:

  • value (Integer, nil)

Returns:

  • (Integer, nil)


15713
# File 'lib/method_ruby/models/entity.rb', line 15713

required :score, Integer, nil?: true

#source ⇒ String?

The source of the credit score.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


15719
# File 'lib/method_ruby/models/entity.rb', line 15719

required :source, String, nil?: true

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


12007
# File 'sig/method_ruby/models/entity.rbs', line 12007

def to_hash: -> {