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

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



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

attribute :aspect_ratio

#created_atString (readonly)

Returns the timestamp of when the display resolution was created.

Returns:

  • (String)

    the timestamp of when the display resolution was created



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

attribute :created_at

#displaysArray<Display>

Returns the displays supporting the display resolution.

Returns:

  • (Array<Display>)

    the displays supporting the display resolution



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

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

#heightFixnum

Returns the height of the resolution.

Returns:

  • (Fixnum)

    the height of the resolution



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

attribute :height

#idFixnum (readonly)

Returns the (unique) ID of the display resolution.

Returns:

  • (Fixnum)

    the (unique) ID of the display resolution



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

attribute :id

#modelsArray<Player::Model>

Returns the player models that support the display resolution.

Returns:

  • (Array<Player::Model>)

    the player models that support the display resolution



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

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



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

attribute :scanning_mode

#updated_atString (readonly)

Returns the timestamp of when the display resolution was last updated.

Returns:

  • (String)

    the timestamp of when the display resolution was last updated



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

attribute :updated_at

#widthFixnum

Returns the width of the resolution.

Returns:

  • (Fixnum)

    the width of the resolution



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

attribute :width