Class: Peddler::APIs::Promotions20251201::ItemBenefit
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::Promotions20251201::ItemBenefit
- 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.
-
#per_customer_uses ⇒ Integer?
readonly
Returns the value of attribute per_customer_uses.
-
#price ⇒ Peddler::Money?
readonly
Returns the value of attribute price.
-
#type ⇒ String
readonly
Returns the value of attribute type.
Class Method Summary collapse
-
.[] ⇒ Object
-
.members ⇒ [ :type, :discount, :per_customer_uses, :price ]
-
.new ⇒ Object
-
.parse ⇒ Peddler::APIs::Promotions20251201::ItemBenefit
Instance Method Summary collapse
-
#members ⇒ [ :type, :discount, :per_customer_uses, :price ]
-
#to_h ⇒ { type: String, discount: Peddler::APIs::Promotions20251201::Discount?, per_customer_uses: Integer?, price: Peddler::Money? }
Instance Attribute Details
#discount ⇒ Peddler::APIs::Promotions20251201::Discount? (readonly)
Returns the value of attribute discount.
274 275 276 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 274 def discount @discount end |
#per_customer_uses ⇒ Integer? (readonly)
Returns the value of attribute per_customer_uses.
275 276 277 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 275 def per_customer_uses @per_customer_uses end |
#price ⇒ Peddler::Money? (readonly)
Returns the value of attribute price.
276 277 278 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 276 def price @price end |
#type ⇒ String (readonly)
Returns the value of attribute type.
277 278 279 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 277 def type @type end |
Class Method Details
.[](type:, discount:, per_customer_uses:, price:) ⇒ Peddler::APIs::Promotions20251201::ItemBenefit .[](arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::Promotions20251201::ItemBenefit
267 268 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 267
def self.[]: (type: String, ?discount: Peddler::APIs::Promotions20251201::Discount?, ?per_customer_uses: Integer?, ?price: Peddler::Money?) -> Peddler::APIs::Promotions20251201::ItemBenefit
| (String, Peddler::APIs::Promotions20251201::Discount?, Integer?, Peddler::Money?) -> Peddler::APIs::Promotions20251201::ItemBenefit
|
.members ⇒ [ :type, :discount, :per_customer_uses, :price ]
270 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 270
def self.members: () -> [ :type, :discount, :per_customer_uses, :price ]
|
.new(type:, discount:, per_customer_uses:, price:) ⇒ Peddler::APIs::Promotions20251201::ItemBenefit .new(arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::Promotions20251201::ItemBenefit
265 266 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 265
def self.new: (type: String, ?discount: Peddler::APIs::Promotions20251201::Discount?, ?per_customer_uses: Integer?, ?price: Peddler::Money?) -> Peddler::APIs::Promotions20251201::ItemBenefit
| (String, Peddler::APIs::Promotions20251201::Discount?, Integer?, Peddler::Money?) -> Peddler::APIs::Promotions20251201::ItemBenefit
|
.parse ⇒ Peddler::APIs::Promotions20251201::ItemBenefit
272 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 272
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::Promotions20251201::ItemBenefit
|
Instance Method Details
#members ⇒ [ :type, :discount, :per_customer_uses, :price ]
279 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 279
def members: () -> [ :type, :discount, :per_customer_uses, :price ]
|
#to_h ⇒ { type: String, discount: Peddler::APIs::Promotions20251201::Discount?, per_customer_uses: Integer?, price: Peddler::Money? }
280 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 280
def to_h: () -> { type: String, discount: Peddler::APIs::Promotions20251201::Discount?, per_customer_uses: Integer?, price: Peddler::Money? }
|