Class: Siteleaf::Page

Inherits:
Content show all
Defined in:
lib/siteleaf/page.rb

Instance Attribute Summary

Attributes inherited from Content

#basename, #body, #created_at, #date, #directory, #filename, #id, #metadata, #path, #permalink, #sha, #site_id, #title, #updated_at, #url, #user_id, #visibility

Attributes inherited from Entity

#error, #message

Instance Method Summary collapse

Methods inherited from Content

#draft?, #hidden?, #site, #to_file, #visible?

Methods inherited from Entity

all, #attributes, #attributes=, class_name, create, delete, #delete, endpoint, #entity_endpoint, find, #identifier, #initialize, #save

Constructor Details

This class inherits a constructor from Siteleaf::Entity

Instance Method Details

#create_endpointObject



4
5
6
# File 'lib/siteleaf/page.rb', line 4

def create_endpoint
  "sites/#{site_id}/pages"
end