Class: LWS::CorporateWebsite::Article
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::CorporateWebsite::Article
- Defined in:
- lib/lws/apps/corporate_website.rb
Overview
The article class
Instance Attribute Summary collapse
-
#body ⇒ String?
The body of the article.
-
#created_at ⇒ String
readonly
The timestamp of when the article was created.
-
#id ⇒ Fixnum
readonly
The (unique) ID of the article.
-
#key ⇒ String
The (page) key of the article.
-
#language ⇒ String
The ID of the language of the article (2 character).
-
#layout ⇒ "text_image_social", ...
The layout used for the article.
-
#menu_item ⇒ Boolean
Whether the article has a menu item.
-
#menu_key ⇒ String?
The key of menu the article belongs to.
-
#news ⇒ Boolean?
Flag whether the article is a news article.
-
#order ⇒ Fixnum?
The order (number) of the article withing the page.
-
#picture ⇒ String?
The path to the picture accompanying the article.
-
#picture_caption ⇒ String?
The caption for the picture accompanying the article.
-
#picture_url ⇒ String?
The URL to the picture accompanying the article.
-
#sitemap ⇒ Boolean
Flag whether the article is included in the sitemap.
-
#social_avatar ⇒ String?
The path to the social avatar accompanying the article.
-
#social_avatar_url ⇒ String?
The URL to the social avatar accompanying the article.
-
#social_location ⇒ String?
The location of the social user accompanying the article.
-
#social_name ⇒ String?
The name of the social user accompanying the article.
-
#social_text ⇒ String?
The text of the social user accompanying the article.
-
#title ⇒ String?
The title of the article.
-
#updated_at ⇒ String
readonly
The timestamp of when the article was last updated.
-
#url ⇒ String
The (partial) URL of the article.
Instance Attribute Details
#body ⇒ String?
Returns the body of the article.
48 |
# File 'lib/lws/apps/corporate_website.rb', line 48 attribute :body |
#created_at ⇒ String (readonly)
Returns the timestamp of when the article was created.
125 |
# File 'lib/lws/apps/corporate_website.rb', line 125 attribute :created_at |
#id ⇒ Fixnum (readonly)
Returns the (unique) ID of the article.
44 |
# File 'lib/lws/apps/corporate_website.rb', line 44 attribute :id |
#key ⇒ String
Returns the (page) key of the article.
52 |
# File 'lib/lws/apps/corporate_website.rb', line 52 attribute :key |
#language ⇒ String
Returns the ID of the language of the article (2 character).
56 |
# File 'lib/lws/apps/corporate_website.rb', line 56 attribute :language |
#layout ⇒ "text_image_social", ...
Returns the layout used for the article.
61 |
# File 'lib/lws/apps/corporate_website.rb', line 61 attribute :layout |
#menu_item ⇒ Boolean
Returns whether the article has a menu item.
69 |
# File 'lib/lws/apps/corporate_website.rb', line 69 attribute :menu_item |
#menu_key ⇒ String?
Returns the key of menu the article belongs to.
65 |
# File 'lib/lws/apps/corporate_website.rb', line 65 attribute :menu_key |
#news ⇒ Boolean?
Returns flag whether the article is a news article.
73 |
# File 'lib/lws/apps/corporate_website.rb', line 73 attribute :news |
#order ⇒ Fixnum?
Returns the order (number) of the article withing the page.
77 |
# File 'lib/lws/apps/corporate_website.rb', line 77 attribute :order |
#picture ⇒ String?
Returns the path to the picture accompanying the article.
81 |
# File 'lib/lws/apps/corporate_website.rb', line 81 attribute :picture |
#picture_caption ⇒ String?
Returns the caption for the picture accompanying the article.
85 |
# File 'lib/lws/apps/corporate_website.rb', line 85 attribute :picture_caption |
#picture_url ⇒ String?
Returns the URL to the picture accompanying the article.
89 |
# File 'lib/lws/apps/corporate_website.rb', line 89 attribute :picture_url |
#sitemap ⇒ Boolean
Returns flag whether the article is included in the sitemap.
93 |
# File 'lib/lws/apps/corporate_website.rb', line 93 attribute :sitemap |
#social_avatar ⇒ String?
Returns the path to the social avatar accompanying the article.
97 |
# File 'lib/lws/apps/corporate_website.rb', line 97 attribute :social_avatar |
#social_avatar_url ⇒ String?
Returns the URL to the social avatar accompanying the article.
101 |
# File 'lib/lws/apps/corporate_website.rb', line 101 attribute :social_avatar_url |
#social_location ⇒ String?
Returns the location of the social user accompanying the article.
105 |
# File 'lib/lws/apps/corporate_website.rb', line 105 attribute :social_location |
#social_name ⇒ String?
Returns the name of the social user accompanying the article.
109 |
# File 'lib/lws/apps/corporate_website.rb', line 109 attribute :social_name |
#social_text ⇒ String?
Returns the text of the social user accompanying the article.
113 |
# File 'lib/lws/apps/corporate_website.rb', line 113 attribute :social_text |
#title ⇒ String?
Returns the title of the article.
117 |
# File 'lib/lws/apps/corporate_website.rb', line 117 attribute :title |
#updated_at ⇒ String (readonly)
Returns the timestamp of when the article was last updated.
129 |
# File 'lib/lws/apps/corporate_website.rb', line 129 attribute :updated_at |
#url ⇒ String
Returns the (partial) URL of the article.
121 |
# File 'lib/lws/apps/corporate_website.rb', line 121 attribute :url |