Class: Pokepay::Response::PaginatedTransfersV2

Inherits:
Object
  • Object
show all
Defined in:
lib/pokepay_partner_ruby_sdk/response/paginated_transfers_v2.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(row) ⇒ PaginatedTransfersV2

Returns a new instance of PaginatedTransfersV2.



6
7
8
9
10
11
12
# File 'lib/pokepay_partner_ruby_sdk/response/paginated_transfers_v2.rb', line 6

def initialize(row)
  @rows = row["rows"]
  @per_page = row["per_page"]
  @count = row["count"]
  @next_page_cursor_id = row["next_page_cursor_id"]
  @prev_page_cursor_id = row["prev_page_cursor_id"]
end

Instance Attribute Details

#countObject (readonly)

Returns the value of attribute count.



15
16
17
# File 'lib/pokepay_partner_ruby_sdk/response/paginated_transfers_v2.rb', line 15

def count
  @count
end

#next_page_cursor_idObject (readonly)

Returns the value of attribute next_page_cursor_id.



16
17
18
# File 'lib/pokepay_partner_ruby_sdk/response/paginated_transfers_v2.rb', line 16

def next_page_cursor_id
  @next_page_cursor_id
end

#per_pageObject (readonly)

Returns the value of attribute per_page.



14
15
16
# File 'lib/pokepay_partner_ruby_sdk/response/paginated_transfers_v2.rb', line 14

def per_page
  @per_page
end

#prev_page_cursor_idObject (readonly)

Returns the value of attribute prev_page_cursor_id.



17
18
19
# File 'lib/pokepay_partner_ruby_sdk/response/paginated_transfers_v2.rb', line 17

def prev_page_cursor_id
  @prev_page_cursor_id
end

#rowsObject (readonly)

Returns the value of attribute rows.



13
14
15
# File 'lib/pokepay_partner_ruby_sdk/response/paginated_transfers_v2.rb', line 13

def rows
  @rows
end