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