Class: VFabric::VFabric
- Inherits:
-
Shared::Resource
- Object
- Shared::Resource
- VFabric::VFabric
- Defined in:
- lib/vas/vfabric/v_fabric.rb
Instance Attribute Summary collapse
-
#agent_image ⇒ Object
readonly
Returns the value of attribute agent_image.
-
#nodes ⇒ Object
readonly
Returns the value of attribute nodes.
Attributes inherited from Shared::Resource
Instance Method Summary collapse
-
#initialize(location, client) ⇒ VFabric
constructor
:nodoc:.
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_image ⇒ Object (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 |
#nodes ⇒ Object (readonly)
Returns the value of attribute nodes.
22 23 24 |
# File 'lib/vas/vfabric/v_fabric.rb', line 22 def nodes @nodes end |