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

Instance Attribute Details

#bodyString?

Returns the body of the article.

Returns:

  • (String, nil)

    the body of the article



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

attribute :body

#created_atString (readonly)

Returns the timestamp of when the article was created.

Returns:

  • (String)

    the timestamp of when the article was created



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

attribute :created_at

#idFixnum (readonly)

Returns the (unique) ID of the article.

Returns:

  • (Fixnum)

    the (unique) ID of the article



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

attribute :id

#keyString

Returns the (page) key of the article.

Returns:

  • (String)

    the (page) key of the article



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

attribute :key

#languageString

Returns the ID of the language of the article (2 character).

Returns:

  • (String)

    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.

Returns:

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

    the layout used for the article



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

attribute :layout

Returns whether the article has a menu item.

Returns:

  • (Boolean)

    whether the article has a menu item



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

attribute :menu_item

Returns the key of menu the article belongs to.

Returns:

  • (String, nil)

    the key of menu the article belongs to



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

attribute :menu_key

#newsBoolean?

Returns flag whether the article is a news article.

Returns:

  • (Boolean, nil)

    flag whether the article is a news article



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

attribute :news

#orderFixnum?

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

Returns:

  • (Fixnum, nil)

    the order (number) of the article withing the page



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

attribute :order

#pictureString?

Returns the path to the picture accompanying the article.

Returns:

  • (String, nil)

    the path to the picture accompanying the article



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

attribute :picture

#picture_captionString?

Returns the caption for the picture accompanying the article.

Returns:

  • (String, nil)

    the caption for the picture accompanying the article



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

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



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

attribute :picture_url

#sitemapBoolean

Returns flag whether the article is included in the sitemap.

Returns:

  • (Boolean)

    flag whether the article is included in the sitemap



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

attribute :sitemap

#social_avatarString?

Returns the path to the social avatar accompanying the article.

Returns:

  • (String, nil)

    the path to the social avatar accompanying the article



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

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



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

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



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

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



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

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



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

attribute :social_text

#titleString?

Returns the title of the article.

Returns:

  • (String, nil)

    the title of the article



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

attribute :title

#updated_atString (readonly)

Returns the timestamp of when the article was last updated.

Returns:

  • (String)

    the timestamp of when the article was last updated



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

attribute :updated_at

#urlString

Returns the (partial) URL of the article.

Returns:

  • (String)

    the (partial) URL of the article



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

attribute :url