Class: Peddler::APIs::Promotions20251201::ClaimCode

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


82
83
84
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 82

def type
  @type
end

#valueString? (readonly)

Returns the value of attribute value.

Returns:

  • (String, nil)


83
84
85
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 83

def value
  @value
end

Class Method Details

.[](type:, value:) ⇒ Peddler::APIs::Promotions20251201::ClaimCode .[](arg0, arg1) ⇒ Peddler::APIs::Promotions20251201::ClaimCode

Overloads:



75
76
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 75

def self.[]: (type: String, ?value: String?) -> Peddler::APIs::Promotions20251201::ClaimCode
| (String, String?) -> Peddler::APIs::Promotions20251201::ClaimCode

.members[ :type, :value ]

Returns:

  • ([ :type, :value ])


78
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 78

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

.new(type:, value:) ⇒ Peddler::APIs::Promotions20251201::ClaimCode .new(arg0, arg1) ⇒ Peddler::APIs::Promotions20251201::ClaimCode

Overloads:



73
74
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 73

def self.new: (type: String, ?value: String?) -> Peddler::APIs::Promotions20251201::ClaimCode
| (String, String?) -> Peddler::APIs::Promotions20251201::ClaimCode

.parsePeddler::APIs::Promotions20251201::ClaimCode

Parameters:

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

Returns:



80
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 80

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

Instance Method Details

#members[ :type, :value ]

Returns:

  • ([ :type, :value ])


85
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 85

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

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

Returns:

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


86
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 86

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