Class: Increase::Models::PhysicalCard::Cardholder

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

Overview

See Also:

  • Increase::Models::PhysicalCard#cardholder

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

#initializeCardholder

Returns a new instance of Cardholder.

Parameters:

  • first_name: (String)
  • last_name: (String)


66
# File 'sig/increase/models/physical_card.rbs', line 66

def initialize: (first_name: String, last_name: String) -> void

Instance Attribute Details

#first_nameString

The cardholder's first name.

Parameters:

  • value (String)

Returns:

  • (String)


99
# File 'lib/increase/models/physical_card.rb', line 99

required :first_name, String

#last_nameString

The cardholder's last name.

Parameters:

  • value (String)

Returns:

  • (String)


105
# File 'lib/increase/models/physical_card.rb', line 105

required :last_name, String

Instance Method Details

#to_hash{ first_name: String, last_name: String }

Returns:

  • ({ first_name: String, last_name: String })


68
# File 'sig/increase/models/physical_card.rbs', line 68

def to_hash: -> { first_name: String, last_name: String }