Class: VFabric::VFabric

Inherits:
Shared::Resource show all
Defined in:
lib/vas/vfabric/v_fabric.rb

Instance Attribute Summary collapse

Attributes inherited from Shared::Resource

#location, #security

Instance Method Summary collapse

Constructor Details

#initialize(location, client) ⇒ VFabric

:nodoc:



26
27
28
29
30
# File 'lib/vas/vfabric/v_fabric.rb', line 26

def initialize(location, client) #:nodoc:
  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_imageObject (readonly)

Returns the value of attribute agent_image.



24
25
26
# File 'lib/vas/vfabric/v_fabric.rb', line 24

def agent_image
  @agent_image
end

#nodesObject (readonly)

Returns the value of attribute nodes.



22
23
24
# File 'lib/vas/vfabric/v_fabric.rb', line 22

def nodes
  @nodes
end