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

Instance Attribute Details

#channelChannel

Returns the channel of the player.

Returns:

  • (Channel)

    the channel of the player



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

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

#channel_idFixnum

Returns the ID of the channel of the player.

Returns:

  • (Fixnum)

    the ID of the channel of the player



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

attribute :channel_id

#companyLWS::Auth::Company

Returns the company the player belongs to.

Returns:



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

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

#company_idFixnum

Returns the ID of the company the player belongs to.

Returns:

  • (Fixnum)

    the ID of the company the player belongs to



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

attribute :company_id

#componentsArray<Player::Component>

Returns the components of the player.

Returns:



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

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

#configurationPlayer::Configuration

Returns the configuration of the player.

Returns:



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

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

#configuration_idFixnum

Returns the ID of the configuration of the player.

Returns:

  • (Fixnum)

    the ID of the configuration of the player



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

attribute :configuration_id

#created_atString (readonly)

Returns the timestamp of when the player was created.

Returns:

  • (String)

    the timestamp of when the player was created



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

attribute :created_at

#feedbacksArray<Player::Feedback>

Returns the feedbacks for the player.

Returns:



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

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

#idFixnum (readonly)

Returns the (unique) ID of the player.

Returns:

  • (Fixnum)

    the (unique) ID of the player



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

attribute :id

#logsArray<Player::Log>

Returns the logs of the player.

Returns:



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

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



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

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



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

attribute :mac_wifi

#modelPlayer::Model

Returns the model of the player.

Returns:



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

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

#model_idFixnum

Returns the ID of the model of the player.

Returns:

  • (Fixnum)

    the ID of the model of the player



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

attribute :model_id

#notificationsArray<Player::Notification>

Returns the notifications for the player.

Returns:



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

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



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

attribute :operational_since

#partsArray<Player::Component::Part>

Returns the parts of the player.

Returns:



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

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:



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

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

#release_channel_idFixnum

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

Returns:

  • (Fixnum)

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



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

attribute :releasee_channel_id

#requestsArray<Player::Feedback>

Returns the requests for the player.

Returns:



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

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

#screenshotsArray<Player::Screenshot>

Returns the screenshots of the player.

Returns:



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

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



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

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



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

attribute :service

#status"unknown", ...

Returns the player status.

Returns:

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

    the player status



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

attribute :status

#tagsArray<Player::Tag>

Returns the tags of the player.

Returns:



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

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

#updated_atString (readonly)

Returns the timestamp of when the player was last updated.

Returns:

  • (String)

    the timestamp of when the player was last updated



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

attribute :updated_at