Class: Peddler::APIs::ShippingV1::Weight

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


770
771
772
# File 'sig/peddler/apis/shipping_v1.rbs', line 770

def unit
  @unit
end

#valueFloat (readonly)

Returns the value of attribute value.

Returns:

  • (Float)


771
772
773
# File 'sig/peddler/apis/shipping_v1.rbs', line 771

def value
  @value
end

Class Method Details

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

Overloads:



763
764
# File 'sig/peddler/apis/shipping_v1.rbs', line 763

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

.members[ :unit, :value ]

Returns:

  • ([ :unit, :value ])


766
# File 'sig/peddler/apis/shipping_v1.rbs', line 766

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

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

Overloads:



761
762
# File 'sig/peddler/apis/shipping_v1.rbs', line 761

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

.parsePeddler::APIs::ShippingV1::Weight

Parameters:

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

Returns:



768
# File 'sig/peddler/apis/shipping_v1.rbs', line 768

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

Instance Method Details

#members[ :unit, :value ]

Returns:

  • ([ :unit, :value ])


773
# File 'sig/peddler/apis/shipping_v1.rbs', line 773

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

#to_h{ unit: String, value: Float }

Returns:

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


774
# File 'sig/peddler/apis/shipping_v1.rbs', line 774

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