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



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

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



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

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



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

attribute :order

#pagePage

Returns the page the article belongs to.

Returns:

  • (Page)

    the page the article belongs to



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

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



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

attribute :page_id

#pictureString?

Returns the path to the picture accompanying the article.

Returns:

  • (String, nil)

    the path to the picture accompanying the article



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

attribute :picture

#picture_captionString?

Returns the caption for the picture accompanying the article.

Returns:

  • (String, nil)

    the caption for the picture accompanying the article



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

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



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

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



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

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



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

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



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

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



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

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



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

attribute :social_text

#titleString?

Returns the title of the article.

Returns:

  • (String, nil)

    the title of the article



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

attribute :title