Class: Printavo::Resources::TypesOfWork

Inherits:
Base
  • Object
show all
Defined in:
lib/printavo/resources/types_of_work.rb

Constant Summary collapse

ALL_QUERY =
File.read(File.join(__dir__, '../graphql/types_of_work/all.graphql')).freeze

Instance Method Summary collapse

Methods inherited from Base

#all_pages, #each_page, #initialize

Constructor Details

This class inherits a constructor from Printavo::Resources::Base

Instance Method Details

#all(first: 25, after: nil) ⇒ Object



9
10
11
# File 'lib/printavo/resources/types_of_work.rb', line 9

def all(first: 25, after: nil)
  fetch_page(first: first, after: after).records
end