Class: Peddler::APIs::ExternalFulfillmentShipments20240911::Weight

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/external_fulfillment_shipments_2024_09_11.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#value ⇒ Float (readonly)

Returns the value of attribute value.

Returns:

  • (Float)


1104
1105
1106
# File 'sig/peddler/apis/external_fulfillment_shipments_2024_09_11.rbs', line 1104

def value
  @value
end

#weight_unit ⇒ String (readonly)

Returns the value of attribute weight_unit.

Returns:

  • (String)


1105
1106
1107
# File 'sig/peddler/apis/external_fulfillment_shipments_2024_09_11.rbs', line 1105

def weight_unit
  @weight_unit
end

Class Method Details

.[](value:, weight_unit:) ⇒ Peddler::APIs::ExternalFulfillmentShipments20240911::Weight .[](arg0, arg1) ⇒ Peddler::APIs::ExternalFulfillmentShipments20240911::Weight

Overloads:



1097
1098
# File 'sig/peddler/apis/external_fulfillment_shipments_2024_09_11.rbs', line 1097

def self.[]: (value: Float, weight_unit: String) -> Peddler::APIs::ExternalFulfillmentShipments20240911::Weight
| (Float, String) -> Peddler::APIs::ExternalFulfillmentShipments20240911::Weight

.members ⇒ [ :value, :weight_unit ]

Returns:

  • ([ :value, :weight_unit ])


1100
# File 'sig/peddler/apis/external_fulfillment_shipments_2024_09_11.rbs', line 1100

def self.members: () -> [ :value, :weight_unit ]

.new(value:, weight_unit:) ⇒ Peddler::APIs::ExternalFulfillmentShipments20240911::Weight .new(arg0, arg1) ⇒ Peddler::APIs::ExternalFulfillmentShipments20240911::Weight

Overloads:



1095
1096
# File 'sig/peddler/apis/external_fulfillment_shipments_2024_09_11.rbs', line 1095

def self.new: (value: Float, weight_unit: String) -> Peddler::APIs::ExternalFulfillmentShipments20240911::Weight
| (Float, String) -> Peddler::APIs::ExternalFulfillmentShipments20240911::Weight

.parse ⇒ Peddler::APIs::ExternalFulfillmentShipments20240911::Weight

Parameters:

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

Returns:



1102
# File 'sig/peddler/apis/external_fulfillment_shipments_2024_09_11.rbs', line 1102

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

Instance Method Details

#members ⇒ [ :value, :weight_unit ]

Returns:

  • ([ :value, :weight_unit ])


1107
# File 'sig/peddler/apis/external_fulfillment_shipments_2024_09_11.rbs', line 1107

def members: () -> [ :value, :weight_unit ]

#to_h ⇒ { value: Float, weight_unit: String }

Returns:

  • ({ value: Float, weight_unit: String })


1108
# File 'sig/peddler/apis/external_fulfillment_shipments_2024_09_11.rbs', line 1108

def to_h: () -> { value: Float, weight_unit: String }