Class: Pago::V2026_04::Models::CustomerEmailUpdateVerifyResponse
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ token: "token" }.freeze
- REQUIRED_KEYS =
["token"].freeze
Instance Attribute Summary collapse
- #token ⇒ String readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(token:) ⇒ CustomerEmailUpdateVerifyResponse
constructor
A new instance of CustomerEmailUpdateVerifyResponse.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(token:) ⇒ CustomerEmailUpdateVerifyResponse
Returns a new instance of CustomerEmailUpdateVerifyResponse.
16853 16854 16855 16856 16857 16858 |
# File 'lib/pago/v2026_04/models.rb', line 16853 def initialize( token: ) super() assign(:token, token) end |
Instance Attribute Details
#token ⇒ String (readonly)
16851 16852 16853 |
# File 'lib/pago/v2026_04/models.rb', line 16851 def token @token end |
Class Method Details
.from_json(data) ⇒ CustomerEmailUpdateVerifyResponse?
16862 16863 16864 16865 16866 16867 16868 16869 16870 16871 16872 16873 |
# File 'lib/pago/v2026_04/models.rb', line 16862 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( token: (data.key?("token") ? data["token"] : ::Pago::UNSET) ), data ) end |