Class: Pago::V2026_04::Models::UserInfoUser
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::UserInfoUser
show all
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary
collapse
- JSON_KEYS =
{
sub: "sub",
name: "name",
email: "email",
email_verified: "email_verified"
}.freeze
- REQUIRED_KEYS =
["sub"].freeze
Instance Attribute Summary collapse
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(sub:, name: ::Pago::UNSET, email: ::Pago::UNSET, email_verified: ::Pago::UNSET) ⇒ UserInfoUser
Returns a new instance of UserInfoUser.
43799
43800
43801
43802
43803
43804
43805
43806
43807
43808
43809
43810
|
# File 'lib/pago/v2026_04/models.rb', line 43799
def initialize(
sub:,
name: ::Pago::UNSET,
email: ::Pago::UNSET,
email_verified: ::Pago::UNSET
)
super()
assign(:sub, sub)
assign(:name, name)
assign(:email, email)
assign(:email_verified, email_verified)
end
|
Instance Attribute Details
#email ⇒ String?
43794
43795
43796
|
# File 'lib/pago/v2026_04/models.rb', line 43794
def email
@email
end
|
#email_verified ⇒ Boolean?
43797
43798
43799
|
# File 'lib/pago/v2026_04/models.rb', line 43797
def email_verified
@email_verified
end
|
#name ⇒ String?
43791
43792
43793
|
# File 'lib/pago/v2026_04/models.rb', line 43791
def name
@name
end
|
#sub ⇒ String
43788
43789
43790
|
# File 'lib/pago/v2026_04/models.rb', line 43788
def sub
@sub
end
|
Class Method Details
43814
43815
43816
43817
43818
43819
43820
43821
43822
43823
43824
43825
43826
43827
43828
|
# File 'lib/pago/v2026_04/models.rb', line 43814
def self.from_json(data)
data = ::JSON.parse(data) if data.is_a?(String)
data = ::Pago::Serde.object(data)
return nil if data.nil?
wrap_raw(
new(
sub: (data.key?("sub") ? data["sub"] : ::Pago::UNSET),
name: (data.key?("name") ? data["name"] : ::Pago::UNSET),
email: (data.key?("email") ? data["email"] : ::Pago::UNSET),
email_verified: (data.key?("email_verified") ? data["email_verified"] : ::Pago::UNSET)
),
data
)
end
|