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:



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

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



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

attribute :account_id

#companyLWS::Auth::Company

Returns the account used for posting the social page.

Returns:



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

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



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

attribute :company_id

#provider"facebook", ...

Returns the social page provider.

Returns:

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

    the social page provider



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

attribute :provider

#provider_uidString

Returns the UID suplied by the social page provider.

Returns:

  • (String)

    the UID suplied by the social page provider



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

attribute :provider_uid

#uid_type"personal", "page"

Returns the social page UID type.

Returns:

  • ("personal", "page")

    the social page UID type



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

attribute :uid_type