Class: Peddler::APIs::ShippingV2::Weight

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


2031
2032
2033
# File 'sig/peddler/apis/shipping_v2.rbs', line 2031

def unit
  @unit
end

#valueFloat (readonly)

Returns the value of attribute value.

Returns:

  • (Float)


2032
2033
2034
# File 'sig/peddler/apis/shipping_v2.rbs', line 2032

def value
  @value
end

Class Method Details

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

Overloads:



2024
2025
# File 'sig/peddler/apis/shipping_v2.rbs', line 2024

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

.members[ :unit, :value ]

Returns:

  • ([ :unit, :value ])


2027
# File 'sig/peddler/apis/shipping_v2.rbs', line 2027

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

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

Overloads:



2022
2023
# File 'sig/peddler/apis/shipping_v2.rbs', line 2022

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

.parsePeddler::APIs::ShippingV2::Weight

Parameters:

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

Returns:



2029
# File 'sig/peddler/apis/shipping_v2.rbs', line 2029

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

Instance Method Details

#members[ :unit, :value ]

Returns:

  • ([ :unit, :value ])


2034
# File 'sig/peddler/apis/shipping_v2.rbs', line 2034

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

#to_h{ unit: String, value: Float }

Returns:

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


2035
# File 'sig/peddler/apis/shipping_v2.rbs', line 2035

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