Class: Peddler::APIs::Promotions20251201::QuantityThreshold

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/promotions_2025_12_01.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#quantityInteger (readonly)

Returns the value of attribute quantity.

Returns:

  • (Integer)


566
567
568
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 566

def quantity
  @quantity
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


567
568
569
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 567

def type
  @type
end

Class Method Details

.[](quantity:, type:) ⇒ Peddler::APIs::Promotions20251201::QuantityThreshold .[](arg0, arg1) ⇒ Peddler::APIs::Promotions20251201::QuantityThreshold

Overloads:



559
560
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 559

def self.[]: (quantity: Integer, type: String) -> Peddler::APIs::Promotions20251201::QuantityThreshold
| (Integer, String) -> Peddler::APIs::Promotions20251201::QuantityThreshold

.members[ :quantity, :type ]

Returns:

  • ([ :quantity, :type ])


562
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 562

def self.members: () -> [ :quantity, :type ]

.new(quantity:, type:) ⇒ Peddler::APIs::Promotions20251201::QuantityThreshold .new(arg0, arg1) ⇒ Peddler::APIs::Promotions20251201::QuantityThreshold

Overloads:



557
558
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 557

def self.new: (quantity: Integer, type: String) -> Peddler::APIs::Promotions20251201::QuantityThreshold
| (Integer, String) -> Peddler::APIs::Promotions20251201::QuantityThreshold

.parsePeddler::APIs::Promotions20251201::QuantityThreshold

Parameters:

  • (Hash[String | Symbol, untyped])
  • (Object)

Returns:



564
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 564

def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::Promotions20251201::QuantityThreshold

Instance Method Details

#members[ :quantity, :type ]

Returns:

  • ([ :quantity, :type ])


569
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 569

def members: () -> [ :quantity, :type ]

#to_h{ quantity: Integer, type: String }

Returns:

  • ({ quantity: Integer, type: String })


570
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 570

def to_h: () -> { quantity: Integer, type: String }