Class: LWS::DigitalSignage::Display::Resolution
- Inherits:
-
Generic::Model
- Object
- Spyke::Base
- Generic::Model
- LWS::DigitalSignage::Display::Resolution
- Defined in:
- lib/lws/apps/digital_signage.rb
Overview
The display resolution class
Instance Attribute Summary collapse
-
#aspect_ratio ⇒ String
readonly
The aspect ratio is recalculated immediately when the width and/or height of the resolution changes.
-
#displays ⇒ Array<Display>
The displays supporting the display resolution.
-
#height ⇒ Integer
The height of the resolution.
-
#models ⇒ Array<Player::Model>
The player models that support the display resolution.
-
#scanning_mode ⇒ "progressive", "interlaced"
The scanning mode setting of the display resolution.
-
#width ⇒ Integer
The width of the resolution.
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_ratio ⇒ String (readonly)
The aspect ratio is recalculated immediately when the width and/or height of the resolution changes.
474 |
# File 'lib/lws/apps/digital_signage.rb', line 474 attribute :aspect_ratio |
#displays ⇒ Array<Display>
Returns the displays supporting the display resolution.
478 479 |
# File 'lib/lws/apps/digital_signage.rb', line 478 has_many :displays, class_name: "LWS::DigitalSignage::Display", uri: "display/resolutions/:resolution_id/displays(/:id)" |
#height ⇒ Integer
Returns the height of the resolution.
483 |
# File 'lib/lws/apps/digital_signage.rb', line 483 attribute :height |
#models ⇒ Array<Player::Model>
Returns the player models that support the display resolution.
488 489 |
# File 'lib/lws/apps/digital_signage.rb', line 488 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.
494 |
# File 'lib/lws/apps/digital_signage.rb', line 494 attribute :scanning_mode |
#width ⇒ Integer
Returns the width of the resolution.
498 |
# File 'lib/lws/apps/digital_signage.rb', line 498 attribute :width |