Class: Sqlfire::Sqlfire
- Inherits:
-
Object
- Object
- Sqlfire::Sqlfire
- Defined in:
- lib/vas/sqlfire/sqlfire.rb
Overview
The entry point to the API for administering SQLFire
Instance Attribute Summary collapse
-
#groups ⇒ Groups
readonly
The SQLFire groups.
-
#installation_images ⇒ InstallationImages
readonly
The SQLFire installation images.
-
#nodes ⇒ Nodes
readonly
The SQLFire nodes.
Instance Method Summary collapse
-
#initialize(location, client) ⇒ Sqlfire
constructor
A new instance of Sqlfire.
Constructor Details
#initialize(location, client) ⇒ Sqlfire
Returns a new instance of Sqlfire.
33 34 35 36 37 38 39 40 41 |
# File 'lib/vas/sqlfire/sqlfire.rb', line 33 def initialize(location, client) json = client.get(location) @groups = Groups.new(Util::LinkUtils.get_link_href(json, 'groups'), client) @installation_images = InstallationImages.new(Util::LinkUtils.get_link_href(json, 'installation-images'), client) @nodes = Nodes.new(Util::LinkUtils.get_link_href(json, 'nodes'), client) end |
Instance Attribute Details
#groups ⇒ Groups (readonly)
Returns the SQLFire groups.
24 25 26 |
# File 'lib/vas/sqlfire/sqlfire.rb', line 24 def groups @groups end |
#installation_images ⇒ InstallationImages (readonly)
Returns the SQLFire installation images.
27 28 29 |
# File 'lib/vas/sqlfire/sqlfire.rb', line 27 def installation_images @installation_images end |
#nodes ⇒ Nodes (readonly)
Returns the SQLFire nodes.
30 31 32 |
# File 'lib/vas/sqlfire/sqlfire.rb', line 30 def nodes @nodes end |