Class: Peddler::APIs::Promotions20251201::Discount
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::Promotions20251201::Discount
- Defined in:
- sig/peddler/apis/promotions_2025_12_01.rbs
Instance Attribute Summary collapse
-
#amount_off ⇒ Float?
readonly
Returns the value of attribute amount_off.
-
#currency_code ⇒ String?
readonly
Returns the value of attribute currency_code.
-
#percent_off ⇒ Float?
readonly
Returns the value of attribute percent_off.
-
#type ⇒ String
readonly
Returns the value of attribute type.
Class Method Summary collapse
-
.[] ⇒ Object
-
.members ⇒ [ :type, :amount_off, :currency_code, :percent_off ]
-
.new ⇒ Object
-
.parse ⇒ Peddler::APIs::Promotions20251201::Discount
Instance Method Summary collapse
-
#members ⇒ [ :type, :amount_off, :currency_code, :percent_off ]
-
#to_h ⇒ { type: String, amount_off: Float?, currency_code: String?, percent_off: Float? }
Instance Attribute Details
#amount_off ⇒ Float? (readonly)
Returns the value of attribute amount_off.
133 134 135 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 133 def amount_off @amount_off end |
#currency_code ⇒ String? (readonly)
Returns the value of attribute currency_code.
134 135 136 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 134 def currency_code @currency_code end |
#percent_off ⇒ Float? (readonly)
Returns the value of attribute percent_off.
135 136 137 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 135 def percent_off @percent_off end |
#type ⇒ String (readonly)
Returns the value of attribute type.
136 137 138 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 136 def type @type end |
Class Method Details
.[](type:, amount_off:, currency_code:, percent_off:) ⇒ Peddler::APIs::Promotions20251201::Discount .[](arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::Promotions20251201::Discount
126 127 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 126
def self.[]: (type: String, ?amount_off: Float?, ?currency_code: String?, ?percent_off: Float?) -> Peddler::APIs::Promotions20251201::Discount
| (String, Float?, String?, Float?) -> Peddler::APIs::Promotions20251201::Discount
|
.members ⇒ [ :type, :amount_off, :currency_code, :percent_off ]
129 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 129
def self.members: () -> [ :type, :amount_off, :currency_code, :percent_off ]
|
.new(type:, amount_off:, currency_code:, percent_off:) ⇒ Peddler::APIs::Promotions20251201::Discount .new(arg0, arg1, arg2, arg3) ⇒ Peddler::APIs::Promotions20251201::Discount
124 125 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 124
def self.new: (type: String, ?amount_off: Float?, ?currency_code: String?, ?percent_off: Float?) -> Peddler::APIs::Promotions20251201::Discount
| (String, Float?, String?, Float?) -> Peddler::APIs::Promotions20251201::Discount
|
.parse ⇒ Peddler::APIs::Promotions20251201::Discount
131 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 131
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::Promotions20251201::Discount
|
Instance Method Details
#members ⇒ [ :type, :amount_off, :currency_code, :percent_off ]
138 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 138
def members: () -> [ :type, :amount_off, :currency_code, :percent_off ]
|
#to_h ⇒ { type: String, amount_off: Float?, currency_code: String?, percent_off: Float? }
139 |
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 139
def to_h: () -> { type: String, amount_off: Float?, currency_code: String?, percent_off: Float? }
|