Class: LWS::CorporateWebsite::SocialPost
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::CorporateWebsite::SocialPost
- Defined in:
- lib/lws/apps/corporate_website.rb
Overview
The social post class
Instance Attribute Summary collapse
-
#article ⇒ Article
The article associated with the social post.
-
#article_id ⇒ Integer
The ID of the article associated with the social post.
-
#description ⇒ String
The description of the social post.
-
#lat ⇒ Float?
The latitude of the location of the social post.
-
#link ⇒ String?
The link used in the social post.
-
#long ⇒ Float?
The longitude of the location of the social post.
-
#title ⇒ String
The title of the social post.
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
#article ⇒ Article
Returns the article associated with the social post.
212 |
# File 'lib/lws/apps/corporate_website.rb', line 212 belongs_to :article |
#article_id ⇒ Integer
Returns the ID of the article associated with the social post.
216 |
# File 'lib/lws/apps/corporate_website.rb', line 216 attribute :article_id |
#description ⇒ String
Returns the description of the social post.
220 |
# File 'lib/lws/apps/corporate_website.rb', line 220 attribute :description |
#lat ⇒ Float?
Returns the latitude of the location of the social post.
228 |
# File 'lib/lws/apps/corporate_website.rb', line 228 attribute :lat |
#link ⇒ String?
Returns the link used in the social post.
224 |
# File 'lib/lws/apps/corporate_website.rb', line 224 attribute :link |
#long ⇒ Float?
Returns the longitude of the location of the social post.
232 |
# File 'lib/lws/apps/corporate_website.rb', line 232 attribute :long |
#title ⇒ String
Returns the title of the social post.
236 |
# File 'lib/lws/apps/corporate_website.rb', line 236 attribute :title |