Class: Pago::V2026_04::Models::BenefitDownloadablesSubscriberProperties
- Inherits:
-
Model
- Object
- Model
- Pago::V2026_04::Models::BenefitDownloadablesSubscriberProperties
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ active_files: "active_files" }.freeze
- REQUIRED_KEYS =
["active_files"].freeze
Instance Attribute Summary collapse
- #active_files ⇒ Array<String> readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(active_files:) ⇒ BenefitDownloadablesSubscriberProperties
constructor
A new instance of BenefitDownloadablesSubscriberProperties.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(active_files:) ⇒ BenefitDownloadablesSubscriberProperties
Returns a new instance of BenefitDownloadablesSubscriberProperties.
3527 3528 3529 3530 3531 3532 |
# File 'lib/pago/v2026_04/models.rb', line 3527 def initialize( active_files: ) super() assign(:active_files, active_files) end |
Instance Attribute Details
#active_files ⇒ Array<String> (readonly)
3525 3526 3527 |
# File 'lib/pago/v2026_04/models.rb', line 3525 def active_files @active_files end |
Class Method Details
.from_json(data) ⇒ BenefitDownloadablesSubscriberProperties?
3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 |
# File 'lib/pago/v2026_04/models.rb', line 3536 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( active_files: (data.key?("active_files") ? data["active_files"] : ::Pago::UNSET) ), data ) end |