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

#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.



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

attribute :aspect_ratio

#displaysArray<Display>



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

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

#heightInteger



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

attribute :height

#modelsArray<Player::Model>



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

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

#scanning_mode"progressive", "interlaced"



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

attribute :scanning_mode

#widthInteger



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

attribute :width