Class: WhatsappSdk::Api::Responses::PaginationRecords

Inherits:
Object
  • Object
show all
Defined in:
lib/whatsapp_sdk/api/responses/pagination_records.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(records:, before:, after:) ⇒ PaginationRecords

Returns a new instance of PaginationRecords.



9
10
11
12
13
# File 'lib/whatsapp_sdk/api/responses/pagination_records.rb', line 9

def initialize(records:, before:, after:)
  @records = records
  @before = before
  @after = after
end

Instance Attribute Details

#afterObject (readonly)

Returns the value of attribute after.



7
8
9
# File 'lib/whatsapp_sdk/api/responses/pagination_records.rb', line 7

def after
  @after
end

#beforeObject (readonly)

Returns the value of attribute before.



7
8
9
# File 'lib/whatsapp_sdk/api/responses/pagination_records.rb', line 7

def before
  @before
end

#recordsObject (readonly)

Returns the value of attribute records.



7
8
9
# File 'lib/whatsapp_sdk/api/responses/pagination_records.rb', line 7

def records
  @records
end