Sha256: e60adf0890f2ceccd5bcbfd5b5395f217881acd45705aafb10e944d939d9215e
Contents?: true
Size: 436 Bytes
Versions: 1
Compression:
Stored size: 436 Bytes
Contents
module Siteleaf class Meta < Entity attr_accessor :key, :value, :page_id, :post_id attr_reader :id def create_endpoint if self.page_id "pages/#{self.page_id}/meta" elsif self.post_id "posts/#{self.post_id}/meta" end end def post Post.find(self.post_id) if self.post_id end def page Page.find(self.page_id) if self.page_id end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
siteleaf-0.8.3 | lib/siteleaf/meta.rb |