Class: Peddler::APIs::MerchantFulfillmentV0::Weight

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/merchant_fulfillment_v0.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)


926
927
928
# File 'sig/peddler/apis/merchant_fulfillment_v0.rbs', line 926

def unit
  @unit
end

#valueFloat (readonly)

Returns the value of attribute value.

Returns:

  • (Float)


927
928
929
# File 'sig/peddler/apis/merchant_fulfillment_v0.rbs', line 927

def value
  @value
end

Class Method Details

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

Overloads:



919
920
# File 'sig/peddler/apis/merchant_fulfillment_v0.rbs', line 919

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

.members[ :unit, :value ]

Returns:

  • ([ :unit, :value ])


922
# File 'sig/peddler/apis/merchant_fulfillment_v0.rbs', line 922

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

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

Overloads:



917
918
# File 'sig/peddler/apis/merchant_fulfillment_v0.rbs', line 917

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

.parsePeddler::APIs::MerchantFulfillmentV0::Weight

Parameters:

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

Returns:



924
# File 'sig/peddler/apis/merchant_fulfillment_v0.rbs', line 924

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

Instance Method Details

#members[ :unit, :value ]

Returns:

  • ([ :unit, :value ])


929
# File 'sig/peddler/apis/merchant_fulfillment_v0.rbs', line 929

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

#to_h{ unit: String, value: Float }

Returns:

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


930
# File 'sig/peddler/apis/merchant_fulfillment_v0.rbs', line 930

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