Sha256: fd20d8e2eaeb98d1c3071c02b79d1f19f06489e5154f6dcd5aa616ba11662c94
Contents?: true
Size: 468 Bytes
Versions: 5
Compression:
Stored size: 468 Bytes
Contents
module Siteleaf class Collection < Entity attr_accessor :title, :path, :output, :site_id, :metadata attr_reader :id, :basename, :directory, :created_at, :updated_at def create_endpoint "sites/#{self.site_id}/collections" end def site Site.find(self.site_id) end def documents result = Client.get "collections/#{self.id}/documents" result.map { |r| Document.new(r) } if result end end end
Version data entries
5 entries across 5 versions & 1 rubygems