Class: LWS::CorporateWebsite::OfficeTime

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

Overview

The opening hours 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

#announceString?

Returns the date/time when the special office times need to be announced on.

Returns:

  • (String, nil)

    the date/time when the special office times need to be announced on



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

attribute :announce

#display_textString

Returns the displayed text of the special office time.

Returns:

  • (String)

    the displayed text of the special office time



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

attribute :display_text

#endString

Returns the end date/time of the special office times.

Returns:

  • (String)

    the end date/time of the special office times



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

attribute :end

#languageString

Returns the ID of the language the office time is for (2 characters).

Returns:

  • (String)

    the ID of the language the office time is for (2 characters)



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

attribute :language

#motiveString

Returns the special office time motive/key.

Returns:

  • (String)

    the special office time motive/key



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

attribute :motive

#startString

Returns the start date/time of the special office times.

Returns:

  • (String)

    the start date/time of the special office times



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

attribute :start