Sha256: 335c960dfdc918a39ac7acb018e6565df04b8636d3c085fe885b42a981062de5

Contents?: true

Size: 743 Bytes

Versions: 1

Compression:

Stored size: 743 Bytes

Contents

module BigBroda
  class TableData < BigBroda::Client

    def self.create(project_id, dataset_id, table_id, body={})
      res = BigBroda::Auth.client.execute(
        :api_method=> BigBroda::Auth.api.tabledata.insert_all,
        :body_object=> body , #{"datasetReference"=> {"datasetId" =>"whoa"}},
        :parameters=> {"projectId"=> project_id, "datasetId"=> dataset_id, "tableId"=>table_id }
      )
      parse_response(res)
    end

    def self.list(project_id, dataset_id, table_id)
      res = BigBroda::Auth.client.execute(
        :api_method=> BigBroda::Auth.api.tabledata.list,
        :parameters=> {"projectId"=> project_id, "datasetId"=> dataset_id, "tableId"=>table_id }
      )
      parse_response(res)
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bigbroda-0.1.0.pre lib/bigbroda/table_data.rb