Class: Pago::V2026_04::Models::CustomerPortalUsageSettings
- Defined in:
- lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs
Constant Summary collapse
- JSON_KEYS =
{ show: "show" }.freeze
- REQUIRED_KEYS =
["show"].freeze
Instance Attribute Summary collapse
- #show ⇒ Boolean readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(show:) ⇒ CustomerPortalUsageSettings
constructor
A new instance of CustomerPortalUsageSettings.
Methods inherited from Model
#==, #[], #field_set?, #hash, #inspect, json_keys, required_json_keys, #to_json, #to_json_hash, wrap_raw
Constructor Details
#initialize(show:) ⇒ CustomerPortalUsageSettings
Returns a new instance of CustomerPortalUsageSettings.
19230 19231 19232 19233 19234 19235 |
# File 'lib/pago/v2026_04/models.rb', line 19230 def initialize( show: ) super() assign(:show, show) end |
Instance Attribute Details
#show ⇒ Boolean (readonly)
19228 19229 19230 |
# File 'lib/pago/v2026_04/models.rb', line 19228 def show @show end |
Class Method Details
.from_json(data) ⇒ CustomerPortalUsageSettings?
19239 19240 19241 19242 19243 19244 19245 19246 19247 19248 19249 19250 |
# File 'lib/pago/v2026_04/models.rb', line 19239 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( show: (data.key?("show") ? data["show"] : ::Pago::UNSET) ), data ) end |