Class: Peddler::APIs::ProductPricing20220501::AmountThreshold

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

#currencyPeddler::Money (readonly)

Returns the value of attribute currency.

Returns:



14
15
16
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 14

def currency
  @currency
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


15
16
17
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 15

def type
  @type
end

Class Method Details

.[](currency:, type:) ⇒ Peddler::APIs::ProductPricing20220501::AmountThreshold .[](arg0, arg1) ⇒ Peddler::APIs::ProductPricing20220501::AmountThreshold



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

def self.[]: (currency: Peddler::Money, type: String) -> Peddler::APIs::ProductPricing20220501::AmountThreshold
| (Peddler::Money, String) -> Peddler::APIs::ProductPricing20220501::AmountThreshold

.members[ :currency, :type ]

Returns:

  • ([ :currency, :type ])


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

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

.new(currency:, type:) ⇒ Peddler::APIs::ProductPricing20220501::AmountThreshold .new(arg0, arg1) ⇒ Peddler::APIs::ProductPricing20220501::AmountThreshold



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

def self.new: (currency: Peddler::Money, type: String) -> Peddler::APIs::ProductPricing20220501::AmountThreshold
| (Peddler::Money, String) -> Peddler::APIs::ProductPricing20220501::AmountThreshold

.parsePeddler::APIs::ProductPricing20220501::AmountThreshold

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :currency, :type ]

Returns:

  • ([ :currency, :type ])


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

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

#to_h{ currency: Peddler::Money, type: String }

Returns:



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

def to_h: () -> { currency: Peddler::Money, type: String }