Class: Spage::Api::Page
- Inherits:
-
Object
- Object
- Spage::Api::Page
- Includes:
- Spage::Api
- Defined in:
- lib/spage/api/page.rb
Overview
Page resources in the statuspage.io API
Instance Method Summary collapse
Methods included from Spage::Api
Instance Method Details
#all ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/spage/api/page.rb', line 12 def all response = client.get(:pages) handle_response(response) do response.body.map do |page| Spage::Page.new(page) end end end |