Class: LWS::CorporateWebsite::Article

Inherits:
Generic::Model show all
Defined in:
lib/lws/apps/corporate_website.rb

Overview

The article class

Instance Attribute Summary collapse

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

#bodyString?

Returns the body of the article.

Returns:

  • (String, nil)

    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.

Returns:

  • ("text_image_social", "text_only", "map")

    the layout used for the article



50
# File 'lib/lws/apps/corporate_website.rb', line 50

attribute :layout

#orderInteger?

Returns the order (number) of the article withing the page.

Returns:

  • (Integer, nil)

    the order (number) of the article withing the page



54
# File 'lib/lws/apps/corporate_website.rb', line 54

attribute :order

#pagePage

Returns the page the article belongs to.

Returns:

  • (Page)

    the page the article belongs to



58
# File 'lib/lws/apps/corporate_website.rb', line 58

belongs_to :page

#page_idInteger

Returns the ID of the page the article belongs to.

Returns:

  • (Integer)

    the ID of the page the article belongs to



62
# File 'lib/lws/apps/corporate_website.rb', line 62

attribute :page_id

#pictureString?

Returns the path to the picture accompanying the article.

Returns:

  • (String, nil)

    the path to the picture accompanying the article



66
# File 'lib/lws/apps/corporate_website.rb', line 66

attribute :picture

#picture_captionString?

Returns the caption for the picture accompanying the article.

Returns:

  • (String, nil)

    the caption for the picture accompanying the article



70
# File 'lib/lws/apps/corporate_website.rb', line 70

attribute :picture_caption

#picture_urlString?

Returns the URL to the picture accompanying the article.

Returns:

  • (String, nil)

    the URL to the picture accompanying the article



74
# File 'lib/lws/apps/corporate_website.rb', line 74

attribute :picture_url

#social_avatarString?

Returns the path to the social avatar accompanying the article.

Returns:

  • (String, nil)

    the path to the social avatar accompanying the article



78
# File 'lib/lws/apps/corporate_website.rb', line 78

attribute :social_avatar

#social_avatar_urlString?

Returns the URL to the social avatar accompanying the article.

Returns:

  • (String, nil)

    the URL to the social avatar accompanying the article



82
# File 'lib/lws/apps/corporate_website.rb', line 82

attribute :social_avatar_url

#social_locationString?

Returns the location of the social user accompanying the article.

Returns:

  • (String, nil)

    the location of the social user accompanying the article



86
# File 'lib/lws/apps/corporate_website.rb', line 86

attribute :social_location

#social_nameString?

Returns the name of the social user accompanying the article.

Returns:

  • (String, nil)

    the name of the social user accompanying the article



90
# File 'lib/lws/apps/corporate_website.rb', line 90

attribute :social_name

#social_textString?

Returns the text of the social user accompanying the article.

Returns:

  • (String, nil)

    the text of the social user accompanying the article



94
# File 'lib/lws/apps/corporate_website.rb', line 94

attribute :social_text

#titleString?

Returns the title of the article.

Returns:

  • (String, nil)

    the title of the article



98
# File 'lib/lws/apps/corporate_website.rb', line 98

attribute :title