Class: Peddler::APIs::ProductPricing20220501::PostalCode

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

#country_codeString? (readonly)

Returns the value of attribute country_code.

Returns:

  • (String, nil)


524
525
526
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 524

def country_code
  @country_code
end

#valueString? (readonly)

Returns the value of attribute value.

Returns:

  • (String, nil)


525
526
527
# File 'sig/peddler/apis/product_pricing_2022_05_01.rbs', line 525

def value
  @value
end

Class Method Details

.[](country_code:, value:) ⇒ Peddler::APIs::ProductPricing20220501::PostalCode .[](arg0, arg1) ⇒ Peddler::APIs::ProductPricing20220501::PostalCode

Overloads:



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

def self.[]: (?country_code: String?, ?value: String?) -> Peddler::APIs::ProductPricing20220501::PostalCode
| (String?, String?) -> Peddler::APIs::ProductPricing20220501::PostalCode

.members[ :country_code, :value ]

Returns:

  • ([ :country_code, :value ])


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

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

.new(country_code:, value:) ⇒ Peddler::APIs::ProductPricing20220501::PostalCode .new(arg0, arg1) ⇒ Peddler::APIs::ProductPricing20220501::PostalCode

Overloads:



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

def self.new: (?country_code: String?, ?value: String?) -> Peddler::APIs::ProductPricing20220501::PostalCode
| (String?, String?) -> Peddler::APIs::ProductPricing20220501::PostalCode

.parsePeddler::APIs::ProductPricing20220501::PostalCode

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :country_code, :value ]

Returns:

  • ([ :country_code, :value ])


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

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

#to_h{ country_code: String?, value: String? }

Returns:

  • ({ country_code: String?, value: String? })


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

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