Class: Peddler::APIs::Promotions20251201::SearchPromotionsResponse

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

#paginationPeddler::APIs::Promotions20251201::Pagination? (readonly)

Returns the value of attribute pagination.



601
602
603
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 601

def pagination
  @pagination
end

#promotionsArray[Peddler::APIs::Promotions20251201::PromotionSummary] (readonly)

Returns the value of attribute promotions.



602
603
604
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 602

def promotions
  @promotions
end

#total_resultsInteger (readonly)

Returns the value of attribute total_results.

Returns:

  • (Integer)


603
604
605
# File 'sig/peddler/apis/promotions_2025_12_01.rbs', line 603

def total_results
  @total_results
end

Class Method Details

.[](promotions:, total_results:, pagination:) ⇒ Peddler::APIs::Promotions20251201::SearchPromotionsResponse .[](arg0, arg1, arg2) ⇒ Peddler::APIs::Promotions20251201::SearchPromotionsResponse



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

def self.[]: (promotions: Array[Peddler::APIs::Promotions20251201::PromotionSummary], total_results: Integer, ?pagination: Peddler::APIs::Promotions20251201::Pagination?) -> Peddler::APIs::Promotions20251201::SearchPromotionsResponse
| (Array[Peddler::APIs::Promotions20251201::PromotionSummary], Integer, Peddler::APIs::Promotions20251201::Pagination?) -> Peddler::APIs::Promotions20251201::SearchPromotionsResponse

.members[ :promotions, :total_results, :pagination ]

Returns:

  • ([ :promotions, :total_results, :pagination ])


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

def self.members: () -> [ :promotions, :total_results, :pagination ]

.new(promotions:, total_results:, pagination:) ⇒ Peddler::APIs::Promotions20251201::SearchPromotionsResponse .new(arg0, arg1, arg2) ⇒ Peddler::APIs::Promotions20251201::SearchPromotionsResponse



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

def self.new: (promotions: Array[Peddler::APIs::Promotions20251201::PromotionSummary], total_results: Integer, ?pagination: Peddler::APIs::Promotions20251201::Pagination?) -> Peddler::APIs::Promotions20251201::SearchPromotionsResponse
| (Array[Peddler::APIs::Promotions20251201::PromotionSummary], Integer, Peddler::APIs::Promotions20251201::Pagination?) -> Peddler::APIs::Promotions20251201::SearchPromotionsResponse

.parsePeddler::APIs::Promotions20251201::SearchPromotionsResponse

Parameters:

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

Returns:



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

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

Instance Method Details

#members[ :promotions, :total_results, :pagination ]

Returns:

  • ([ :promotions, :total_results, :pagination ])


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

def members: () -> [ :promotions, :total_results, :pagination ]

#to_h{ promotions: Array[Peddler::APIs::Promotions20251201::PromotionSummary], total_results: Integer, pagination: Peddler::APIs::Promotions20251201::Pagination? }

Returns:



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

def to_h: () -> { promotions: Array[Peddler::APIs::Promotions20251201::PromotionSummary], total_results: Integer, pagination: Peddler::APIs::Promotions20251201::Pagination? }