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



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

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

Instance Attribute Details

#first_nameString

The cardholder's first name.



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

required :first_name, String

#last_nameString

The cardholder's last name.



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

required :last_name, String

Instance Method Details

#to_hash{ first_name: String, last_name: String }



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

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