class ScalrApiV2::Servers
connection and request methods for interacting with the Scalr API
Public Class Methods
new()
click to toggle source
# File lib/scalr_api_v2/servers.rb, line 7 def initialize @config = ScalrApiV2::Config.new.config @scalr = ScalrApiV2::Request.new end
Public Instance Methods
list()
click to toggle source
List all scripts
# File lib/scalr_api_v2/servers.rb, line 13 def list list = @scalr.list(format('/api/v1beta0/%s/servers/', @config['mode_path'])) return list end