Class: LWS::DigitalSignage::Player::Os::Package::VersionChange

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

Overview

Note:

This class is only used within the context of the LWS::DigitalSignage::Player::Os::Package class.

The player OS package version change 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

#deep_dup, #dig, #reload, #rollback, #save

Instance Attribute Details

#branch_releasePlayer::Os::Branch::Release

Returns the branch release the player OS package version change is included in.

Returns:



1712
1713
1714
# File 'lib/lws/apps/digital_signage.rb', line 1712

belongs_to :branch_release, class_name: "LWS::DigitalSignage::Player::Os::Branch::Release",
foreign_key: :branch_release_id,
uri: "player/os/branches/:branch_id/releases/:id"

#branch_release_idInteger

Returns the ID of the branch release the player OS package version change is included in.

Returns:

  • (Integer)

    the ID of the branch release the player OS package version change is included in



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

attribute :branch_release_id

#from_numberString?

Note:

Either the from (version) number or the to (version) number needs to be set.

Returns the number the player OS package version was before the change.

Returns:

  • (String, nil)

    the number the player OS package version was before the change



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

attribute :from_number

#from_versionPlayer::Os::Package::Version?

Returns the version the player OS package was before the change.

Returns:



1731
1732
1733
# File 'lib/lws/apps/digital_signage.rb', line 1731

belongs_to :from_version, class_name: "LWS::DigitalSignage::Player::Os::Package::Version",
foreign_key: :from_version_id,
uri: "player/os/packages/:package_id/versions/:id"

#from_version_idInteger?

Returns the ID of the number the player OS package version was before the change.

Returns:

  • (Integer, nil)

    the ID of the number the player OS package version was before the change



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

attribute :from_version_id

#logString?

Returns the log of the player OS package version change (can be nil if #to_version is nil).

Returns:

  • (String, nil)

    the log of the player OS package version change (can be nil if #to_version is nil)



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

attribute :log

#packagePlayer::Os::Package

Returns the player OS package the version change is for.

Returns:



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

belongs_to :package, class_name: "LWS::DigitalSignage::Player::Os::Package",
uri: "player/os/packages/:id"

#package_idInteger

Returns the ID the player OS package the version change is of.

Returns:

  • (Integer)

    the ID the player OS package the version change is of



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

attribute :package_id

#state"waiting", ...

Returns the processing state of the player OS version change.

Returns:

  • ("waiting", "processing", "done", "error")

    the processing state of the player OS version change



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

attribute :state

#to_numberString?

Note:

Either the from (version) number or the to (version) number needs to be set.

Returns the number of the player OS package version was after the change.

Returns:

  • (String, nil)

    the number of the player OS package version was after the change



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

attribute :to_number

#to_versionPlayer::Os::Package::Version?

Returns the version the player OS package was after the change.

Returns:



1769
1770
1771
# File 'lib/lws/apps/digital_signage.rb', line 1769

belongs_to :to_version, class_name: "LWS::DigitalSignage::Player::Os::Package::Version",
foreign_key: :to_version_id,
uri: "player/os/packages/:package_id/versions/:id"

#to_version_idInteger?

Returns the ID of the version the player OS package was after the change.

Returns:

  • (Integer, nil)

    the ID of the version the player OS package was after the change



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

attribute :to_version_id