class T2Server::Administrator::AdminResource

This class represents a resource in the Taverna Server administrative interface. A resource can be read only or read/write.

Resources are created when the parent Administrator class is created and are accessed via the [] method within that class.

Attributes

name[R]

The name of this resource.

path[R]

The path to this resource on the server.

Public Instance Methods

value → String click to toggle source
value=

Get or set the value held by this resource. This call always queries the server as values can change without user intervention.

The resource can only be set if it is writable.

# File lib/t2-server/admin.rb, line 125
def value
  @admin.get_resource_value(@path)
end
writable? → bool click to toggle source

Is this resource writable?

# File lib/t2-server/admin.rb, line 133
def writable?
  @writeable
end