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.
-
#layout ⇒ "text_image_social", ...
The layout used for the article.
-
#order ⇒ Integer?
The order (number) of the article withing the page.
-
#page ⇒ Page
The page the article belongs to.
-
#page_id ⇒ Integer
The ID of the page the article belongs to.
-
#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.
-
#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.
Attributes inherited from Generic::Model
#created_at, #id, #updated_at, #url, #url_html
Method Summary
Methods inherited from Generic::Model
#deep_dup, #dig, #reload, #rollback, #save
Instance Attribute Details
#body ⇒ String?
Returns the body of the article.
45 |
# File 'lib/lws/apps/corporate_website.rb', line 45 attribute :body |
#layout ⇒ "text_image_social", ...
Returns the layout used for the article.
50 |
# File 'lib/lws/apps/corporate_website.rb', line 50 attribute :layout |
#order ⇒ Integer?
Returns the order (number) of the article withing the page.
54 |
# File 'lib/lws/apps/corporate_website.rb', line 54 attribute :order |
#page ⇒ Page
Returns the page the article belongs to.
58 |
# File 'lib/lws/apps/corporate_website.rb', line 58 belongs_to :page |
#page_id ⇒ Integer
Returns the ID of the page the article belongs to.
62 |
# File 'lib/lws/apps/corporate_website.rb', line 62 attribute :page_id |
#picture ⇒ String?
Returns the path to the picture accompanying the article.
66 |
# File 'lib/lws/apps/corporate_website.rb', line 66 attribute :picture |
#picture_caption ⇒ String?
Returns the caption for the picture accompanying the article.
70 |
# File 'lib/lws/apps/corporate_website.rb', line 70 attribute :picture_caption |
#picture_url ⇒ String?
Returns the URL to the picture accompanying the article.
74 |
# File 'lib/lws/apps/corporate_website.rb', line 74 attribute :picture_url |
#social_avatar ⇒ String?
Returns the path to the social avatar accompanying the article.
78 |
# File 'lib/lws/apps/corporate_website.rb', line 78 attribute :social_avatar |
#social_avatar_url ⇒ String?
Returns the URL to the social avatar accompanying the article.
82 |
# File 'lib/lws/apps/corporate_website.rb', line 82 attribute :social_avatar_url |
#social_location ⇒ String?
Returns the location of the social user accompanying the article.
86 |
# File 'lib/lws/apps/corporate_website.rb', line 86 attribute :social_location |
#social_name ⇒ String?
Returns the name of the social user accompanying the article.
90 |
# File 'lib/lws/apps/corporate_website.rb', line 90 attribute :social_name |
#social_text ⇒ String?
Returns the text of the social user accompanying the article.
94 |
# File 'lib/lws/apps/corporate_website.rb', line 94 attribute :social_text |
#title ⇒ String?
Returns the title of the article.
98 |
# File 'lib/lws/apps/corporate_website.rb', line 98 attribute :title |