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



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

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



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

attribute :created_at

#displaysArray<Display>

Returns the displays supporting the display resolution.

Returns:

  • (Array<Display>)

    the displays supporting the display resolution



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

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

#heightFixnum

Returns the height of the resolution.

Returns:

  • (Fixnum)

    the height of the resolution



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

attribute :height

#idFixnum (readonly)

Returns the (unique) ID of the display resolution.

Returns:

  • (Fixnum)

    the (unique) ID of the display resolution



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

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



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

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

#scanning_mode"progressive", "interlaced"

Returns the scanning mode setting of the display resolution.

Returns:

  • ("progressive", "interlaced")

    the scanning mode setting of the display resolution



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

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



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

attribute :updated_at

#widthFixnum

Returns the width of the resolution.

Returns:

  • (Fixnum)

    the width of the resolution



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

attribute :width