Class: Peddler::APIs::Promotions20251201::BenefitTier

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

#discountPeddler::APIs::Promotions20251201::Discount (readonly)

Returns the value of attribute discount.



31
32
33
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 31

def discount
  @discount
end

#purchase_conditionPeddler::APIs::Promotions20251201::PurchaseCondition (readonly)

Returns the value of attribute purchase_condition.



32
33
34
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 32

def purchase_condition
  @purchase_condition
end

Class Method Details

.[](discount:, purchase_condition:) ⇒ Peddler::APIs::Promotions20251201::BenefitTier .[](arg0, arg1) ⇒ Peddler::APIs::Promotions20251201::BenefitTier



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

def self.[]: (discount: Peddler::APIs::Promotions20251201::Discount, purchase_condition: Peddler::APIs::Promotions20251201::PurchaseCondition) -> Peddler::APIs::Promotions20251201::BenefitTier
| (Peddler::APIs::Promotions20251201::Discount, Peddler::APIs::Promotions20251201::PurchaseCondition) -> Peddler::APIs::Promotions20251201::BenefitTier

.members[ :discount, :purchase_condition ]

Returns:

  • ([ :discount, :purchase_condition ])


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

def self.members: () -> [ :discount, :purchase_condition ]

.new(discount:, purchase_condition:) ⇒ Peddler::APIs::Promotions20251201::BenefitTier .new(arg0, arg1) ⇒ Peddler::APIs::Promotions20251201::BenefitTier



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

def self.new: (discount: Peddler::APIs::Promotions20251201::Discount, purchase_condition: Peddler::APIs::Promotions20251201::PurchaseCondition) -> Peddler::APIs::Promotions20251201::BenefitTier
| (Peddler::APIs::Promotions20251201::Discount, Peddler::APIs::Promotions20251201::PurchaseCondition) -> Peddler::APIs::Promotions20251201::BenefitTier

.parsePeddler::APIs::Promotions20251201::BenefitTier

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :discount, :purchase_condition ]

Returns:

  • ([ :discount, :purchase_condition ])


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

def members: () -> [ :discount, :purchase_condition ]

#to_h{ discount: Peddler::APIs::Promotions20251201::Discount, purchase_condition: Peddler::APIs::Promotions20251201::PurchaseCondition }



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

def to_h: () -> { discount: Peddler::APIs::Promotions20251201::Discount, purchase_condition: Peddler::APIs::Promotions20251201::PurchaseCondition }