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



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

attribute :announce

#display_textString

Returns the displayed text of the special office time.

Returns:

  • (String)

    the displayed text of the special office time



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

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



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

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)



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

attribute :language

#motiveString

Returns the special office time motive/key.

Returns:

  • (String)

    the special office time motive/key



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

attribute :motive

#startString

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

Returns:

  • (String)

    the start date/time of the special office times



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

attribute :start