Class: Peddler::APIs::Promotions20251201::Budget

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

#currency_codeString? (readonly)

Returns the value of attribute currency_code.

Returns:

  • (String, nil)


64
65
66
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 64

def currency_code
  @currency_code
end

#typeString (readonly)

Returns the value of attribute type.

Returns:

  • (String)


65
66
67
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 65

def type
  @type
end

#valueFloat (readonly)

Returns the value of attribute value.

Returns:

  • (Float)


66
67
68
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 66

def value
  @value
end

Class Method Details

.[](type:, value:, currency_code:) ⇒ Peddler::APIs::Promotions20251201::Budget .[](arg0, arg1, arg2) ⇒ Peddler::APIs::Promotions20251201::Budget

Overloads:



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

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

.members[ :type, :value, :currency_code ]

Returns:

  • ([ :type, :value, :currency_code ])


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

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

.new(type:, value:, currency_code:) ⇒ Peddler::APIs::Promotions20251201::Budget .new(arg0, arg1, arg2) ⇒ Peddler::APIs::Promotions20251201::Budget

Overloads:



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

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

.parsePeddler::APIs::Promotions20251201::Budget

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :type, :value, :currency_code ]

Returns:

  • ([ :type, :value, :currency_code ])


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

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

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

Returns:

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


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

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