Class: Peddler::APIs::ProductPricing20220501::ReferencePrice
- Inherits:
-
Data
- Object
- Data
- Peddler::APIs::ProductPricing20220501::ReferencePrice
- Defined in:
- sig/peddler/apis/product_pricing_2022_05_01.rbs
Instance Attribute Summary collapse
-
#name ⇒ String
readonly
Returns the value of attribute name.
-
#price ⇒ Peddler::Money
readonly
Returns the value of attribute price.
Class Method Summary collapse
- .[] ⇒ Object
- .members ⇒ [ :name, :price ]
- .new ⇒ Object
- .parse ⇒ Peddler::APIs::ProductPricing20220501::ReferencePrice
Instance Method Summary collapse
Instance Attribute Details
#name ⇒ String (readonly)
Returns the value of attribute name.
575 576 577 |
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 575 def name @name end |
#price ⇒ Peddler::Money (readonly)
Returns the value of attribute price.
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 ]
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 |
.parse ⇒ Peddler::APIs::ProductPricing20220501::ReferencePrice
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 ]
578 |
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 578 def members: () -> [ :name, :price ] |
#to_h ⇒ { name: String, price: Peddler::Money }
579 |
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 579 def to_h: () -> { name: String, price: Peddler::Money } |