Class: LWS::CorporateWebsite::SocialPage

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

Overview

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

#accountLWS::Auth::Account

Returns the account used for posting the social page.

Returns:



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

belongs_to :account, class_name: "LWS::Auth::Account"

#account_idInteger

Returns the ID of the account used for posting the social page.

Returns:

  • (Integer)

    the ID of the account used for posting the social page



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

attribute :account_id

#companyLWS::Auth::Company

Returns the account used for posting the social page.

Returns:



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

belongs_to :company, class_name: "LWS::Auth::Company"

#company_idInteger

Returns the ID of the account used for posting the social page.

Returns:

  • (Integer)

    the ID of the account used for posting the social page



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

attribute :company_id

#provider"facebook", ...

Returns the social page provider.

Returns:

  • ("facebook", "linkedin", "twitter", nil)

    the social page provider



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

attribute :provider

#provider_uidString

Returns the UID suplied by the social page provider.

Returns:

  • (String)

    the UID suplied by the social page provider



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

attribute :provider_uid

#uid_type"personal", "page"

Returns the social page UID type.

Returns:

  • ("personal", "page")

    the social page UID type



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

attribute :uid_type