records.rb
518 Bytes
# frozen_string_literal: true
require './appdocks/api/request'
require './appdocks/api/base'
module Appdocks
module Api
module Container
class Records < Appdocks::Api::Base
def call(container_id)
@response = Appdocks::Api::Request.new.send_request('getDataContainerRecordsForContainerId', nil,
{id: container_id, scope: 'all'})
end
def data
response[:data]
end
end
end
end
end