Class: Pago::V2026_04::Models::CustomerPortalUsageSettings

Inherits:
Model
  • Object
show all
Defined in:
lib/pago/v2026_04/models.rb,
sig/pago/v2026_04/generated.rbs

Constant Summary collapse

JSON_KEYS =

Returns:

  • (Hash[Symbol, String])
{
  show: "show"
}.freeze
REQUIRED_KEYS =

Returns:

  • (Array[String])
["show"].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(show:) ⇒ CustomerPortalUsageSettings

Returns a new instance of CustomerPortalUsageSettings.

Parameters:

  • show: (Boolean)


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

#showBoolean (readonly)

Returns:

  • (Boolean)


19228
19229
19230
# File 'lib/pago/v2026_04/models.rb', line 19228

def show
  @show
end

Class Method Details

.from_json(data) ⇒ CustomerPortalUsageSettings?

Parameters:

  • data (Hash, String, nil)

Returns:



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