Class: Peddler::APIs::ProductPricing20220501::ReferencePrice

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

#nameString (readonly)

Returns the value of attribute name.

Returns:

  • (String)


575
576
577
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 575

def name
  @name
end

#pricePeddler::Money (readonly)

Returns the value of attribute price.

Returns:



576
577
578
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 576

def price
  @price
end

Class Method Details

.[](name:, price:) ⇒ Peddler::APIs::ProductPricing20220501::ReferencePrice .[](arg0, arg1) ⇒ Peddler::APIs::ProductPricing20220501::ReferencePrice



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

def self.[]: (name: String, price: Peddler::Money) -> Peddler::APIs::ProductPricing20220501::ReferencePrice
| (String, Peddler::Money) -> Peddler::APIs::ProductPricing20220501::ReferencePrice

.members[ :name, :price ]

Returns:

  • ([ :name, :price ])


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

def self.members: () -> [ :name, :price ]

.new(name:, price:) ⇒ Peddler::APIs::ProductPricing20220501::ReferencePrice .new(arg0, arg1) ⇒ Peddler::APIs::ProductPricing20220501::ReferencePrice



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

def self.new: (name: String, price: Peddler::Money) -> Peddler::APIs::ProductPricing20220501::ReferencePrice
| (String, Peddler::Money) -> Peddler::APIs::ProductPricing20220501::ReferencePrice

.parsePeddler::APIs::ProductPricing20220501::ReferencePrice

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :name, :price ]

Returns:

  • ([ :name, :price ])


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

def members: () -> [ :name, :price ]

#to_h{ name: String, price: Peddler::Money }

Returns:



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

def to_h: () -> { name: String, price: Peddler::Money }