Class: MethodRuby::Models::Entity::EntityIndividualResource::Connect::EntityConnect::Account::AccountACHResource::Sensitive::AccountSensitive::Field

Inherits:
Internal::Type::BaseModel
  • Object
show all
Defined in:
lib/method_ruby/models/entity.rb,
sig/method_ruby/models/entity.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(id:, account_id:, created_at:, fields:, status:, type:, updated_at:, error: nil) ⇒ Field

Sensitive data for an account.

Parameters:



3318
3319
3320
3321
3322
3323
3324
3325
3326
3327
3328
3329
3330
3331
3332
3333
3334
3335
# File 'lib/method_ruby/models/entity.rb', line 3318

class Field < MethodRuby::Internal::Type::BaseModel
  # @!attribute name
  #   Name of the field.
  #
  #   @return [String, nil]
  optional :name, String

  # @!attribute value
  #   Value of the field.
  #
  #   @return [String, nil]
  optional :value, String

  # @!method initialize(name: nil, value: nil)
  #   @param name [String] Name of the field.
  #
  #   @param value [String] Value of the field.
end

Instance Attribute Details

#name ⇒ String?

Name of the field.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :name, String

#value ⇒ String?

Value of the field.

Parameters:

  • (String)

Returns:

  • (String, nil)


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

optional :value, String

Instance Method Details

#to_hash ⇒ { name: String, value: String }

Returns:

  • ({ name: String, value: String })


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

def to_hash: -> { name: String, value: String }