Class: WeConnect::RequestPagination::DefaultPager

Inherits:
WrAPI::RequestPagination::DefaultPager
  • Object
show all
Defined in:
lib/weconnect/pagination.rb

Overview

Defaut pages assumes all data retrieved in a single go.

Class Method Summary collapse

Class Method Details

.data(body) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/weconnect/pagination.rb', line 12

def self.data(body)
  if body['data']
    body['data']
  else
    body
  end
end