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



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

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



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

attribute :article_id

#descriptionString

Returns the description of the social post.

Returns:

  • (String)

    the description of the social post



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

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



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

attribute :lat

Returns the link used in the social post.

Returns:

  • (String, nil)

    the link used in the social post



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

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



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

attribute :long

#titleString

Returns the title of the social post.

Returns:

  • (String)

    the title of the social post



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

attribute :title