Class: LWS::CorporateWebsite::SocialPost

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

Overview

The social post 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

#articleArticle

Returns the article associated with the social post.

Returns:

  • (Article)

    the article associated with the social post



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

belongs_to :article

#article_idInteger

Returns the ID of the article associated with the social post.

Returns:

  • (Integer)

    the ID of the article associated with the social post



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

attribute :article_id

#descriptionString

Returns the description of the social post.

Returns:

  • (String)

    the description of the social post



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

attribute :description

#latFloat?

Returns the latitude of the location of the social post.

Returns:

  • (Float, nil)

    the latitude of the location of the social post



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

attribute :lat

Returns the link used in the social post.

Returns:

  • (String, nil)

    the link used in the social post



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

attribute :link

#longFloat?

Returns the longitude of the location of the social post.

Returns:

  • (Float, nil)

    the longitude of the location of the social post



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

attribute :long

#titleString

Returns the title of the social post.

Returns:

  • (String)

    the title of the social post



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

attribute :title