Class: Peddler::APIs::FulfillmentInbound20240320::Weight

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#unitString (readonly)

Returns the value of attribute unit.

Returns:

  • (String)


2172
2173
2174
# File 'sig/peddler/apis/fulfillment_inbound_2024_03_20.rbs', line 2172

def unit
  @unit
end

#valueFloat (readonly)

Returns the value of attribute value.

Returns:

  • (Float)


2173
2174
2175
# File 'sig/peddler/apis/fulfillment_inbound_2024_03_20.rbs', line 2173

def value
  @value
end

Class Method Details

.[](unit:, value:) ⇒ Peddler::APIs::FulfillmentInbound20240320::Weight .[](arg0, arg1) ⇒ Peddler::APIs::FulfillmentInbound20240320::Weight

Overloads:



2165
2166
# File 'sig/peddler/apis/fulfillment_inbound_2024_03_20.rbs', line 2165

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

.members[ :unit, :value ]

Returns:

  • ([ :unit, :value ])


2168
# File 'sig/peddler/apis/fulfillment_inbound_2024_03_20.rbs', line 2168

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

.new(unit:, value:) ⇒ Peddler::APIs::FulfillmentInbound20240320::Weight .new(arg0, arg1) ⇒ Peddler::APIs::FulfillmentInbound20240320::Weight

Overloads:



2163
2164
# File 'sig/peddler/apis/fulfillment_inbound_2024_03_20.rbs', line 2163

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

.parsePeddler::APIs::FulfillmentInbound20240320::Weight

Parameters:

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

Returns:



2170
# File 'sig/peddler/apis/fulfillment_inbound_2024_03_20.rbs', line 2170

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

Instance Method Details

#members[ :unit, :value ]

Returns:

  • ([ :unit, :value ])


2175
# File 'sig/peddler/apis/fulfillment_inbound_2024_03_20.rbs', line 2175

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

#to_h{ unit: String, value: Float }

Returns:

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


2176
# File 'sig/peddler/apis/fulfillment_inbound_2024_03_20.rbs', line 2176

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