Class: LWS::DigitalSignage::Player::Os::Branch::Release

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::Branch class.

The player OS branch release 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

#branchPlayer::Os::Branch

Returns the player OS branch the release is for.

Returns:



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

belongs_to :branch, class_name: "LWS::DigitalSignage::Player::Os::Branch",
uri: "player/os/branches/:id"

#branch_idInteger

Returns the ID of the player OS branch the release is for.

Returns:

  • (Integer)

    the ID of the player OS branch the release is for



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

attribute :branch_id

#commit_dateString

Returns the date/time of the release (commit).

Returns:

  • (String)

    the date/time of the release (commit)



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

attribute :commit_date

#commit_hashString

Returns the SHA256 commit hash of the release (commit).

Returns:

  • (String)

    the SHA256 commit hash of the release (commit)



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

attribute :commit_hash

#commit_messageString

Returns the message of the release (commit).

Returns:

  • (String)

    the message of the release (commit)



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

attribute :commit_message

#package_version_changesArray<Player::Os::Package::VersionChange>

Returns the player OS package version changes in this release.

Returns:



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

has_many :package_version_changes, class_name: "LWS::DigitalSignage::Player::Os::Package::VersionChange",
uri: "player/os/branches/:branch_id/releases/:release_id/package_version_changes(/:id)"

#package_versionsArray<Player::Os::Package::Version>

Returns the player OS package versions in this release.

Returns:



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

has_many :package_versions, class_name: "LWS::DigitalSignage::Player::Os::Package::Version",
uri: "player/os/branches/:branch_id/releases/:release_id/package_versions(/:id)"

#parentPlayer::Os::Branch::Release?

Returns the parent of the player OS branch release.

Returns:



1363
1364
1365
# File 'lib/lws/apps/digital_signage.rb', line 1363

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

#parent_idInteger?

Returns the ID of the parent of the player OS branch release.

Returns:

  • (Integer, nil)

    the ID of the parent of the player OS branch release



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

attribute :parent_id

Returns the player OS branch release that the release is a promotion of.

Returns:



1374
1375
1376
# File 'lib/lws/apps/digital_signage.rb', line 1374

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

Returns the ID of the player OS branch release that the release is a promotion of.

Returns:

  • (Integer, nil)

    the ID of the player OS branch release that the release is a promotion of



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

attribute :promoted_release_id

#promoting_releasesArray<Player::Os::Branch::Release>

Returns the player OS branch releases that promote the release.

Returns:



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

has_many :promoting_release, class_name: "LWS::DigitalSignage::Player::Os::Branch::Release"

#versionString

Returns the version of the release.

Returns:

  • (String)

    the version of the release



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

attribute :version