Class: LWS::DigitalSignage::Display::Resolution

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

Overview

The display resolution 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

#aspect_ratioString (readonly)

The aspect ratio is recalculated immediately when the width and/or height of the resolution changes.

Returns:

  • (String)

    the aspect ratio of the resolution



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

attribute :aspect_ratio

#display_idsArray<Integer>

Returns the IDs of the displays supporting the display resolution.

Returns:

  • (Array<Integer>)

    the IDs of the displays supporting the display resolution



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

attribute :display_ids

#displaysArray<Display>

Returns the displays supporting the display resolution.

Returns:

  • (Array<Display>)

    the displays supporting the display resolution



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

has_many :displays, class_name: "LWS::DigitalSignage::Display",
uri: "display/resolutions/:resolution_id/displays(/:id)"

#heightInteger

Returns the height of the resolution.

Returns:

  • (Integer)

    the height of the resolution



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

attribute :height

#model_idsArray<Integer>

Returns the IDs of the player models that support the display resolution.

Returns:

  • (Array<Integer>)

    the IDs of the player models that support the display resolution



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

attribute :model_ids

#modelsArray<Player::Model>

Returns the player models that support the display resolution.

Returns:

  • (Array<Player::Model>)

    the player models that support the display resolution



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

has_many :models, class_name: "LWS::DigitalSignage::Player::Model",
uri: "display/resolutions/:resolution_id/models(/:id)"

#scanning_mode"progressive", "interlaced"

Returns the scanning mode setting of the display resolution.

Returns:

  • ("progressive", "interlaced")

    the scanning mode setting of the display resolution



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

attribute :scanning_mode

#widthInteger

Returns the width of the resolution.

Returns:

  • (Integer)

    the width of the resolution



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

attribute :width