Class: Increase::Models::PhysicalCard::Cardholder
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Increase::Models::PhysicalCard::Cardholder
- Defined in:
- lib/increase/models/physical_card.rb,
sig/increase/models/physical_card.rbs
Overview
Instance Attribute Summary collapse
-
#first_name ⇒ String
The cardholder's first name.
-
#last_name ⇒ String
The cardholder's last name.
Instance Method Summary collapse
-
#initialize ⇒ Cardholder
constructor
A new instance of Cardholder.
- #to_hash ⇒ { first_name: String, last_name: String }
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 ⇒ Cardholder
Returns a new instance of Cardholder.
66 |
# File 'sig/increase/models/physical_card.rbs', line 66
def initialize: (first_name: String, last_name: String) -> void
|
Instance Attribute Details
#first_name ⇒ String
The cardholder's first name.
99 |
# File 'lib/increase/models/physical_card.rb', line 99 required :first_name, String |
#last_name ⇒ String
The cardholder's last name.
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 }
68 |
# File 'sig/increase/models/physical_card.rbs', line 68
def to_hash: -> { first_name: String, last_name: String }
|