Class: LWS::DigitalSignage::Player

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

Overview

The player class

Defined Under Namespace

Modules: Os Classes: Component, Configuration, Feedback, Log, Model, Notification, PredefinedConfiguration, Request, Screenshot, Tag

Instance Attribute Summary collapse

Attributes inherited from Generic::Model

#created_at, #id, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#reload, #rollback, #save

Instance Attribute Details

#channelChannel

Returns the channel of the player.

Returns:

  • (Channel)

    the channel of the player



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

belongs_to :channel, class_name: "LWS::DigitalSignage::Channel"

#channel_idInteger

Returns the ID of the channel of the player.

Returns:

  • (Integer)

    the ID of the channel of the player



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

attribute :channel_id

#companyLWS::Auth::Company

Returns the company the player belongs to.

Returns:



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

belongs_to :company, class_name: "LWS::Auth::Company"

#company_idInteger

Returns the ID of the company the player belongs to.

Returns:

  • (Integer)

    the ID of the company the player belongs to



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

attribute :company_id

#componentsArray<Player::Component>

Returns the components of the player.

Returns:



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

has_many :components, class_name: "LWS::DigitalSignage::Player::Component"

#configurationPlayer::Configuration

Returns the configuration of the player.

Returns:



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

belongs_to :configuration, class_name: "LWS::DigitalSignage::Player::Configuration",
uri: "player/configurations/:id"

#configuration_idInteger

Returns the ID of the configuration of the player.

Returns:

  • (Integer)

    the ID of the configuration of the player



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

attribute :configuration_id

#feedbacksArray<Player::Feedback>

Returns the feedbacks for the player.

Returns:



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

has_many :feedbacks, class_name: "LWS::DigitalSignage::Player::Feedback"

#logsArray<Player::Log>

Returns the logs of the player.

Returns:



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

has_many :logs, class_name: "LWS::DigitalSignage::Player::Log"

#mac_lanString?

Returns the MAC address of the LAN interface of the player.

Returns:

  • (String, nil)

    the MAC address of the LAN interface of the player



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

attribute :mac_lan

#mac_wifiString?

Returns the MAC address of the Wi-Fi interface of the player.

Returns:

  • (String, nil)

    the MAC address of the Wi-Fi interface of the player



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

attribute :mac_wifi

#modelPlayer::Model

Returns the model of the player.

Returns:



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

belongs_to :model, class_name: "LWS::DigitalSignage::Player::Model",
uri: "player/models/:id"

#model_idInteger

Returns the ID of the model of the player.

Returns:

  • (Integer)

    the ID of the model of the player



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

attribute :model_id

#notificationsArray<Player::Notification>

Returns the notifications for the player.

Returns:



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

has_many :notifications, class_name: "LWS::DigitalSignage::Player::Notification"

#operational_sinceString?

Returns the date/time when the player became operational for the first time.

Returns:

  • (String, nil)

    the date/time when the player became operational for the first time



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

attribute :operational_since

#partsArray<Player::Component::Part>

Returns the parts of the player.

Returns:



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

has_many :parts, class_name: "LWS::DigitalSignage::Player::Component::Part"

#release_channelPlayer::Os::ReleaseChannel

Returns the player OS release channel used by the player.

Returns:



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

belongs_to :release_channel, class_name: "LWS::DigitalSignage::Player::Os::ReleaseChannel",
uri: "player/os/release_channels/:id"

#release_channel_idInteger

Returns the ID of the player OS release channel used by the player.

Returns:

  • (Integer)

    the ID of the player OS release channel used by the player



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

attribute :releasee_channel_id

#requestsArray<Player::Feedback>

Returns the requests for the player.

Returns:



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

has_many :requests, class_name: "LWS::DigitalSignage::Player::Request"

#screenshotsArray<Player::Screenshot>

Returns the screenshots of the player.

Returns:



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

has_many :screenshots, class_name: "LWS::DigitalSignage::Player::Screenshot"

#serial_numberString (readonly)

Returns the serial number of the player.

Returns:

  • (String)

    the serial number of the player



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

attribute :serial_number

#serviceBoolean

Returns whether the player is being serviced/is in service.

Returns:

  • (Boolean)

    whether the player is being serviced/is in service



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

attribute :service

#status"unknown", ...

Returns the player status.

Returns:

  • ("unknown", "good", "warning", "bad")

    the player status



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

attribute :status

#tagsArray<Player::Tag>

Returns the tags of the player.

Returns:



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

has_many :tags, class_name: "LWS::DigitalSignage::Player::Tag"