Sha256: eec96ee7f92eea99ad2b49e35c1258dd466165a6df91dddefa71f9d551807804

Contents?: true

Size: 368 Bytes

Versions: 76

Compression:

Stored size: 368 Bytes

Contents

require 'flydata/api/base'

module Flydata
  module Api
    class RedshiftCluster < Base
      def initialize(api_client)
        @model_name = 'redshift_cluster'
        @url_path = "/#{@model_name.pluralize}"
        super
      end

      def run_query(sql)
        @client.post("#{@url_path}/query", nil, {redshift_query: {body: sql}})
      end
    end
  end
end

Version data entries

76 entries across 76 versions & 1 rubygems

Version Path
flydata-0.7.17 lib/flydata/api/redshift_cluster.rb
flydata-0.7.16 lib/flydata/api/redshift_cluster.rb
flydata-0.7.15 lib/flydata/api/redshift_cluster.rb
flydata-0.7.14 lib/flydata/api/redshift_cluster.rb
flydata-0.7.13 lib/flydata/api/redshift_cluster.rb
flydata-0.7.12 lib/flydata/api/redshift_cluster.rb
flydata-0.7.11 lib/flydata/api/redshift_cluster.rb
flydata-0.7.10 lib/flydata/api/redshift_cluster.rb
flydata-0.7.9 lib/flydata/api/redshift_cluster.rb
flydata-0.7.8 lib/flydata/api/redshift_cluster.rb
flydata-0.7.7 lib/flydata/api/redshift_cluster.rb
flydata-0.7.6 lib/flydata/api/redshift_cluster.rb
flydata-0.7.5 lib/flydata/api/redshift_cluster.rb
flydata-0.7.4 lib/flydata/api/redshift_cluster.rb
flydata-0.7.2.1 lib/flydata/api/redshift_cluster.rb
flydata-0.7.2 lib/flydata/api/redshift_cluster.rb
flydata-0.7.1 lib/flydata/api/redshift_cluster.rb
flydata-0.7.0 lib/flydata/api/redshift_cluster.rb
flydata-0.6.14 lib/flydata/api/redshift_cluster.rb
flydata-0.6.13 lib/flydata/api/redshift_cluster.rb