Class: Peddler::APIs::MerchantFulfillmentV0::Length

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, nil)


625
626
627
# File 'sig/peddler/apis/merchant_fulfillment_v0.rbs', line 625

def unit
  @unit
end

#valueFloat? (readonly)

Returns the value of attribute value.

Returns:

  • (Float, nil)


626
627
628
# File 'sig/peddler/apis/merchant_fulfillment_v0.rbs', line 626

def value
  @value
end

Class Method Details

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

Overloads:



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

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

.members[ :unit, :value ]

Returns:

  • ([ :unit, :value ])


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

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

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

Overloads:



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

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

.parsePeddler::APIs::MerchantFulfillmentV0::Length

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :unit, :value ]

Returns:

  • ([ :unit, :value ])


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

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

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

Returns:

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


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

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