Class: Peddler::APIs::Promotions20251201::BenefitTier
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::Promotions20251201::BenefitTier
- Defined in:
- sig/peddler/apis/promotions_2025_12_01.rbs
Instance Attribute Summary collapse
-
#discount ⇒ Peddler::APIs::Promotions20251201::Discount
readonly
Returns the value of attribute discount.
-
#purchase_condition ⇒ Peddler::APIs::Promotions20251201::PurchaseCondition
readonly
Returns the value of attribute purchase_condition.
Class Method Summary collapse
-
.[] ⇒ Object
-
.members ⇒ [ :discount, :purchase_condition ]
-
.new ⇒ Object
-
.parse ⇒ Peddler::APIs::Promotions20251201::BenefitTier
Instance Method Summary collapse
-
#members ⇒ [ :discount, :purchase_condition ]
-
#to_h ⇒ { discount: Peddler::APIs::Promotions20251201::Discount, purchase_condition: Peddler::APIs::Promotions20251201::PurchaseCondition }
Instance Attribute Details
#discount ⇒ Peddler::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_condition ⇒ Peddler::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 ]
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
|
.parse ⇒ Peddler::APIs::Promotions20251201::BenefitTier
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 ]
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 }
|