Class: Peddler::APIs::ProductPricing20220501::QuantityThreshold

Inherits:
Data
  • Object
show all
Defined in:
sig/peddler/apis/product_pricing_2022_05_01.rbs

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#quantityInteger (readonly)

Returns the value of attribute quantity.

Returns:

  • (Integer)


683
684
685
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 683

def quantity
  @quantity
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


684
685
686
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 684

def type
  @type
end

Class Method Details

.[](quantity:, type:) ⇒ Peddler::APIs::ProductPricing20220501::QuantityThreshold .[](arg0, arg1) ⇒ Peddler::APIs::ProductPricing20220501::QuantityThreshold

Overloads:



676
677
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 676

def self.[]: (quantity: Integer, type: String) -> Peddler::APIs::ProductPricing20220501::QuantityThreshold
| (Integer, String) -> Peddler::APIs::ProductPricing20220501::QuantityThreshold

.members[ :quantity, :type ]

Returns:

  • ([ :quantity, :type ])


679
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 679

def self.members: () -> [ :quantity, :type ]

.new(quantity:, type:) ⇒ Peddler::APIs::ProductPricing20220501::QuantityThreshold .new(arg0, arg1) ⇒ Peddler::APIs::ProductPricing20220501::QuantityThreshold

Overloads:



674
675
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 674

def self.new: (quantity: Integer, type: String) -> Peddler::APIs::ProductPricing20220501::QuantityThreshold
| (Integer, String) -> Peddler::APIs::ProductPricing20220501::QuantityThreshold

.parsePeddler::APIs::ProductPricing20220501::QuantityThreshold

Parameters:

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

Returns:



681
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 681

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

Instance Method Details

#members[ :quantity, :type ]

Returns:

  • ([ :quantity, :type ])


686
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 686

def members: () -> [ :quantity, :type ]

#to_h{ quantity: Integer, type: String }

Returns:

  • ({ quantity: Integer, type: String })


687
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 687

def to_h: () -> { quantity: Integer, type: String }