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)


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

def unit
  @unit
end

#valueFloat (readonly)

Returns the value of attribute value.

Returns:

  • (Float)


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

def value
  @value
end

Class Method Details

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

Overloads:



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

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

.members[ :unit, :value ]

Returns:

  • ([ :unit, :value ])


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

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

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

Overloads:



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

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:



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

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

Instance Method Details

#members[ :unit, :value ]

Returns:

  • ([ :unit, :value ])


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

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

#to_h{ unit: String, value: Float }

Returns:

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


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

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