Class: Peddler::APIs::ExternalFulfillmentShipments20240911::Distance

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

#distance_unit ⇒ String (readonly)

Returns the value of attribute distance_unit.

Returns:

  • (String)


240
241
242
# File 'sig/peddler/apis/external_fulfillment_shipments_2024_09_11.rbs', line 240

def distance_unit
  @distance_unit
end

#value ⇒ Float (readonly)

Returns the value of attribute value.

Returns:

  • (Float)


241
242
243
# File 'sig/peddler/apis/external_fulfillment_shipments_2024_09_11.rbs', line 241

def value
  @value
end

Class Method Details

.[](distance_unit:, value:) ⇒ Peddler::APIs::ExternalFulfillmentShipments20240911::Distance .[](arg0, arg1) ⇒ Peddler::APIs::ExternalFulfillmentShipments20240911::Distance

Overloads:



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

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

.members ⇒ [ :distance_unit, :value ]

Returns:

  • ([ :distance_unit, :value ])


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

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

.new(distance_unit:, value:) ⇒ Peddler::APIs::ExternalFulfillmentShipments20240911::Distance .new(arg0, arg1) ⇒ Peddler::APIs::ExternalFulfillmentShipments20240911::Distance

Overloads:



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

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

.parse ⇒ Peddler::APIs::ExternalFulfillmentShipments20240911::Distance

Parameters:

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

Returns:



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

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

Instance Method Details

#members ⇒ [ :distance_unit, :value ]

Returns:

  • ([ :distance_unit, :value ])


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

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

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

Returns:

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


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

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