Class: Peddler::APIs::FulfillmentOutbound20260704::Amount

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


74
75
76
# File 'sig/peddler/apis/fulfillment_outbound_2026_07_04.rbs', line 74

def unit
  @unit
end

#valueString (readonly)

Returns the value of attribute value.

Returns:

  • (String)


75
76
77
# File 'sig/peddler/apis/fulfillment_outbound_2026_07_04.rbs', line 75

def value
  @value
end

Class Method Details

.[](value:, unit:) ⇒ Peddler::APIs::FulfillmentOutbound20260704::Amount .[](arg0, arg1) ⇒ Peddler::APIs::FulfillmentOutbound20260704::Amount

Overloads:



67
68
# File 'sig/peddler/apis/fulfillment_outbound_2026_07_04.rbs', line 67

def self.[]: (value: String, ?unit: String?) -> Peddler::APIs::FulfillmentOutbound20260704::Amount
| (String, String?) -> Peddler::APIs::FulfillmentOutbound20260704::Amount

.members[ :value, :unit ]

Returns:

  • ([ :value, :unit ])


70
# File 'sig/peddler/apis/fulfillment_outbound_2026_07_04.rbs', line 70

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

.new(value:, unit:) ⇒ Peddler::APIs::FulfillmentOutbound20260704::Amount .new(arg0, arg1) ⇒ Peddler::APIs::FulfillmentOutbound20260704::Amount

Overloads:



65
66
# File 'sig/peddler/apis/fulfillment_outbound_2026_07_04.rbs', line 65

def self.new: (value: String, ?unit: String?) -> Peddler::APIs::FulfillmentOutbound20260704::Amount
| (String, String?) -> Peddler::APIs::FulfillmentOutbound20260704::Amount

.parsePeddler::APIs::FulfillmentOutbound20260704::Amount

Parameters:

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

Returns:



72
# File 'sig/peddler/apis/fulfillment_outbound_2026_07_04.rbs', line 72

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

Instance Method Details

#members[ :value, :unit ]

Returns:

  • ([ :value, :unit ])


77
# File 'sig/peddler/apis/fulfillment_outbound_2026_07_04.rbs', line 77

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

#to_h{ value: String, unit: String? }

Returns:

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


78
# File 'sig/peddler/apis/fulfillment_outbound_2026_07_04.rbs', line 78

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