Class: Flydata::Api::RedshiftCluster

Inherits:
Base
  • Object
show all
Defined in:
lib/flydata/api/redshift_cluster.rb

Instance Method Summary collapse

Methods inherited from Base

#create, #list

Constructor Details

#initialize(api_client) ⇒ RedshiftCluster

Returns a new instance of RedshiftCluster.


6
7
8
9
10
# File 'lib/flydata/api/redshift_cluster.rb', line 6

def initialize(api_client)
  @model_name = 'redshift_cluster'
  @url_path = "/#{@model_name.pluralize}"
  super
end

Instance Method Details

#show_defaultObject


12
13
14
15
16
# File 'lib/flydata/api/redshift_cluster.rb', line 12

def show_default
  # currently one user has one redshift_cluster
  url_path = "#{@url_path}/show_default?password_required=1"
  @client.get(url_path)
end