Class: Bmc::Sdk::GetServers
- Inherits:
-
Object
- Object
- Bmc::Sdk::GetServers
- Defined in:
- lib/commands.rb
Overview
GetServers command will get server properties for all servers in an account.
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(client) ⇒ GetServers
constructor
A new instance of GetServers.
Constructor Details
#initialize(client) ⇒ GetServers
Returns a new instance of GetServers.
72 73 74 |
# File 'lib/commands.rb', line 72 def initialize(client) @client = client end |
Instance Method Details
#execute ⇒ Object
76 77 78 79 80 |
# File 'lib/commands.rb', line 76 def execute return @client.get( "#{Entrypoint}servers", headers: {'Content-Type': 'application/json'}) end |