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

Instance Attribute Details

#articleArticle

Returns the article associated with the social post.

Returns:

  • (Article)

    the article associated with the social post



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

belongs_to :article

#article_idFixnum

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

Returns:

  • (Fixnum)

    the ID of the article associated with the social post



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

attribute :article_id

#created_atString (readonly)

Returns the timestamp of when the social post was created.

Returns:

  • (String)

    the timestamp of when the social post was created



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

attribute :created_at

#descriptionString

Returns the description of the social post.

Returns:

  • (String)

    the description of the social post



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

attribute :description

#idFixnum (readonly)

Returns the (unique) ID of the social post.

Returns:

  • (Fixnum)

    the (unique) ID of the social post



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

attribute :id

#latFloat?

Returns the latitude of the location of the social post.

Returns:

  • (Float, nil)

    the latitude of the location of the social post



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

attribute :lat

Returns the link used in the social post.

Returns:

  • (String, nil)

    the link used in the social post



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

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



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

attribute :long

#titleString

Returns the title of the social post.

Returns:

  • (String)

    the title of the social post



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

attribute :title

#updated_atString (readonly)

Returns the timestamp of when the social post was last updated.

Returns:

  • (String)

    the timestamp of when the social post was last updated



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

attribute :updated_at