Class: VFabric::VFabric
- Inherits:
-
Shared::Resource
- Object
- Shared::Resource
- VFabric::VFabric
- Defined in:
- lib/vas/vfabric/v_fabric.rb
Overview
The entry point of the vFabric API
Instance Attribute Summary collapse
-
#agent_image ⇒ AgentImage
readonly
The installation image for the vFabric Administration agent.
-
#nodes ⇒ Nodes
readonly
The nodes that are known to the server.
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ VFabric
constructor
A new instance of VFabric.
Constructor Details
#initialize(location, client) ⇒ VFabric
Returns a new instance of VFabric.
29 30 31 32 33 |
# File 'lib/vas/vfabric/v_fabric.rb', line 29 def initialize(location, client) json = client.get(location) @nodes = Nodes.new(Util::LinkUtils.get_link_href(json, 'nodes'), client) @agent_image = AgentImage.new(Util::LinkUtils.get_link_href(json, 'agent-image'), client) end |
Instance Attribute Details
#agent_image ⇒ AgentImage (readonly)
Returns the installation image for the vFabric Administration agent.
26 27 28 |
# File 'lib/vas/vfabric/v_fabric.rb', line 26 def agent_image @agent_image end |
#nodes ⇒ Nodes (readonly)
Returns the nodes that are known to the server.
23 24 25 |
# File 'lib/vas/vfabric/v_fabric.rb', line 23 def nodes @nodes end |