Module: RockRMS::Client::Page

Included in:
RockRMS::Client
Defined in:
lib/rock_rms/resources/page.rb

Instance Method Summary collapse

Instance Method Details

#list_pages(options = {}) ⇒ Object



4
5
6
7
# File 'lib/rock_rms/resources/page.rb', line 4

def list_pages(options = {})
  res = get(page_path, options)
  Response::Page.format(res)
end

#page_path(id = nil) ⇒ Object



9
10
11
# File 'lib/rock_rms/resources/page.rb', line 9

def page_path(id = nil)
  id ? "Pages/#{id}" : 'Pages'
end