Class: TcServer::NodeRevision
- Inherits:
-
Shared::StateResource
- Object
- Shared::Resource
- Shared::StateResource
- TcServer::NodeRevision
- Defined in:
- lib/vas/tc_server/node_revisions.rb
Overview
A revision of a NodeApplication
Instance Attribute Summary collapse
-
#application ⇒ Object
readonly
The Revision’s application.
-
#group_revision ⇒ Object
readonly
The revision’s group revision.
-
#version ⇒ Object
readonly
The Revision’s version.
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ NodeRevision
constructor
:nodoc:.
-
#to_s ⇒ Object
:nodoc:.
Methods inherited from Shared::StateResource
Constructor Details
#initialize(location, client) ⇒ NodeRevision
:nodoc:
41 42 43 44 45 46 47 |
# File 'lib/vas/tc_server/node_revisions.rb', line 41 def initialize(location, client) #:nodoc: super(location, client) @version = details['version'] @application = NodeApplication.new(Util::LinkUtils.get_link_href(details, 'node-application'), client) @group_revision = Revision.new(Util::LinkUtils.get_link_href(details, 'group-revision'), client) end |
Instance Attribute Details
#application ⇒ Object (readonly)
The Revision’s application
36 37 38 |
# File 'lib/vas/tc_server/node_revisions.rb', line 36 def application @application end |
#group_revision ⇒ Object (readonly)
The revision’s group revision
39 40 41 |
# File 'lib/vas/tc_server/node_revisions.rb', line 39 def group_revision @group_revision end |
#version ⇒ Object (readonly)
The Revision’s version
33 34 35 |
# File 'lib/vas/tc_server/node_revisions.rb', line 33 def version @version end |
Instance Method Details
#to_s ⇒ Object
:nodoc:
49 50 51 |
# File 'lib/vas/tc_server/node_revisions.rb', line 49 def to_s #:nodoc: "#<#{self.class} version='#@version'>" end |