Class: Peddler::APIs::ShippingV2::ChargeComponent
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::ShippingV2::ChargeComponent
- Defined in:
- sig/peddler/apis/shipping_v2.rbs
Instance Attribute Summary collapse
-
#amount ⇒ Peddler::Money?
readonly
Returns the value of attribute amount.
-
#charge_type ⇒ String?
readonly
Returns the value of attribute charge_type.
Class Method Summary collapse
-
.[] ⇒ Object
-
.members ⇒ [ :amount, :charge_type ]
-
.new ⇒ Object
-
.parse ⇒ Peddler::APIs::ShippingV2::ChargeComponent
Instance Method Summary collapse
Instance Attribute Details
#amount ⇒ Peddler::Money? (readonly)
Returns the value of attribute amount.
321 322 323 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 321 def amount @amount end |
#charge_type ⇒ String? (readonly)
Returns the value of attribute charge_type.
322 323 324 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 322 def charge_type @charge_type end |
Class Method Details
.[](amount:, charge_type:) ⇒ Peddler::APIs::ShippingV2::ChargeComponent .[](arg0, arg1) ⇒ Peddler::APIs::ShippingV2::ChargeComponent
314 315 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 314
def self.[]: (?amount: Peddler::Money?, ?charge_type: String?) -> Peddler::APIs::ShippingV2::ChargeComponent
| (Peddler::Money?, String?) -> Peddler::APIs::ShippingV2::ChargeComponent
|
.members ⇒ [ :amount, :charge_type ]
317 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 317
def self.members: () -> [ :amount, :charge_type ]
|
.new(amount:, charge_type:) ⇒ Peddler::APIs::ShippingV2::ChargeComponent .new(arg0, arg1) ⇒ Peddler::APIs::ShippingV2::ChargeComponent
312 313 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 312
def self.new: (?amount: Peddler::Money?, ?charge_type: String?) -> Peddler::APIs::ShippingV2::ChargeComponent
| (Peddler::Money?, String?) -> Peddler::APIs::ShippingV2::ChargeComponent
|
.parse ⇒ Peddler::APIs::ShippingV2::ChargeComponent
319 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 319
def self.parse: (?Hash[String | Symbol, untyped], **untyped) -> Peddler::APIs::ShippingV2::ChargeComponent
|
Instance Method Details
#members ⇒ [ :amount, :charge_type ]
324 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 324
def members: () -> [ :amount, :charge_type ]
|
#to_h ⇒ { amount: Peddler::Money?, charge_type: String? }
325 |
# File 'sig/peddler/apis/shipping_v2.rbs', line 325
def to_h: () -> { amount: Peddler::Money?, charge_type: String? }
|