Class: LWS::DigitalSignage::Display

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

Overview

The display class

Defined Under Namespace

Classes: Input, Resolution

Instance Attribute Summary collapse

Instance Attribute Details

#aspect_ratioString?

Returns the aspect ratio of the display.

Returns:

  • (String, nil)

    the aspect ratio of the display



427
# File 'lib/lws/apps/digital_signage.rb', line 427

attribute :aspect_ratio

#baud_rateString

Returns the baud rate of the RS232 connection to the display.

Returns:

  • (String)

    the baud rate of the RS232 connection to the display



431
# File 'lib/lws/apps/digital_signage.rb', line 431

attribute :baud_rate

#channelsArray<Channel>

Returns the channels using the display.

Returns:

  • (Array<Channel>)

    the channels using the display



435
# File 'lib/lws/apps/digital_signage.rb', line 435

has_many :channels, class_name: "LWS::DigitalSignage::Channel"

#created_atString (readonly)

Returns the timestamp of when the display was created.

Returns:

  • (String)

    the timestamp of when the display was created



492
# File 'lib/lws/apps/digital_signage.rb', line 492

attribute :created_at

#data_bitsString

Returns the data bits setting of the RS232 connection to the display.

Returns:

  • (String)

    the data bits setting of the RS232 connection to the display



439
# File 'lib/lws/apps/digital_signage.rb', line 439

attribute :data_bits

#idFixnum (readonly)

Returns the (unique) ID of the display.

Returns:

  • (Fixnum)

    the (unique) ID of the display



423
# File 'lib/lws/apps/digital_signage.rb', line 423

attribute :id

#inputsArray<Display::Input>

Returns the inputs supported by the display.

Returns:



443
# File 'lib/lws/apps/digital_signage.rb', line 443

has_many :inputs, class_name: "LWS::DigitalSignage::Display::Input"

#nameString

Returns the name of the display.

Returns:

  • (String)

    the name of the display



447
# File 'lib/lws/apps/digital_signage.rb', line 447

attribute :name

#parity"none", ...

Returns the parity setting of the RS232 connection to the display.

Returns:

  • ("none", "odd", "even" "mark", "space")

    the parity setting of the RS232 connection to the display



452
# File 'lib/lws/apps/digital_signage.rb', line 452

attribute :parity

#power_off_commandString?

Returns the command to turn the display off via the RS232 connection.

Returns:

  • (String, nil)

    the command to turn the display off via the RS232 connection



468
# File 'lib/lws/apps/digital_signage.rb', line 468

attribute :power_off_command

#power_off_feedback_commandString?

Returns the feedback command to turn the display off via the RS232 connection.

Returns:

  • (String, nil)

    the feedback command to turn the display off via the RS232 connection



472
# File 'lib/lws/apps/digital_signage.rb', line 472

attribute :power_off_feedback_command

#power_off_feedback_resultString?

Returns the result of the feedback command to turn the display off via the RS232 connection.

Returns:

  • (String, nil)

    the result of the feedback command to turn the display off via the RS232 connection



476
# File 'lib/lws/apps/digital_signage.rb', line 476

attribute :power_off_feedback_result

#power_on_commandString?

Returns the command to turn the display on via the RS232 connection.

Returns:

  • (String, nil)

    the command to turn the display on via the RS232 connection



456
# File 'lib/lws/apps/digital_signage.rb', line 456

attribute :power_on_command

#power_on_feedback_commandString?

Returns the feedback command to turn the display on via the RS232 connection.

Returns:

  • (String, nil)

    the feedback command to turn the display on via the RS232 connection



460
# File 'lib/lws/apps/digital_signage.rb', line 460

attribute :power_on_feedback_command

#power_on_feedback_resultString?

Returns the result of the feedback command to turn the display on via the RS232 connection.

Returns:

  • (String, nil)

    the result of the feedback command to turn the display on via the RS232 connection



464
# File 'lib/lws/apps/digital_signage.rb', line 464

attribute :power_on_feedback_result

#resolutionsArray<Display::Resolution>

Returns the resolutions supported by the display.

Returns:



480
# File 'lib/lws/apps/digital_signage.rb', line 480

has_many :resolutions, class_name: "LWS::DigitalSignage::Display::Resolution"

#slugString (readonly)

Returns the slug(ified name) of the display.

Returns:

  • (String)

    the slug(ified name) of the display



484
# File 'lib/lws/apps/digital_signage.rb', line 484

attribute :slug

#stop_bitsString

Returns the stop bits setting of the RS232 connection to the display.

Returns:

  • (String)

    the stop bits setting of the RS232 connection to the display



488
# File 'lib/lws/apps/digital_signage.rb', line 488

attribute :stop_bits

#updated_atString (readonly)

Returns the timestamp of when the display was last updated.

Returns:

  • (String)

    the timestamp of when the display was last updated



496
# File 'lib/lws/apps/digital_signage.rb', line 496

attribute :updated_at