Class: Increase::Models::Card::CardholderName
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Increase::Models::Card::CardholderName
- Defined in:
- lib/increase/models/card.rb,
sig/increase/models/card.rbs
Overview
Instance Attribute Summary collapse
-
#first ⇒ String
The cardholder's first name.
-
#last ⇒ String
The cardholder's last name.
-
#middle ⇒ String?
The cardholder's middle name.
Instance Method Summary collapse
-
#initialize ⇒ CardholderName
constructor
A new instance of CardholderName.
- #to_hash ⇒ { first: String, last: String, middle: 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 ⇒ CardholderName
Returns a new instance of CardholderName.
470 |
# File 'sig/increase/models/card.rbs', line 470
def initialize: (first: String, last: String, middle: String?) -> void
|
Instance Attribute Details
#first ⇒ String
The cardholder's first name.
633 |
# File 'lib/increase/models/card.rb', line 633 required :first, String |
#last ⇒ String
The cardholder's last name.
639 |
# File 'lib/increase/models/card.rb', line 639 required :last, String |
#middle ⇒ String?
The cardholder's middle name.
645 |
# File 'lib/increase/models/card.rb', line 645 required :middle, String, nil?: true |
Instance Method Details
#to_hash ⇒ { first: String, last: String, middle: String? }
472 |
# File 'sig/increase/models/card.rbs', line 472
def to_hash: -> { first: String, last: String, middle: String? }
|