Class: Reattract::Campaign

Inherits:
Object
  • Object
show all
Defined in:
lib/reattract/resources/campaign.rb

Overview

/v1/campaigns

Class Method Summary collapse

Class Method Details

.list(limit: 20, page: 1, order: ['id desc']) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/reattract/resources/campaign.rb', line 7

def list(limit: 20, page: 1, order: ['id desc'])
  request.get(
    sort:       order,
    pagination: {
      limit: limit,
      page:  page
    }
  )
end