Class: PlatformAPI::Archive
- Inherits:
-
Object
- Object
- PlatformAPI::Archive
- Defined in:
- lib/platform-api/client.rb
Overview
An audit trail archive represents a monthly json zipped file containing events
Instance Method Summary collapse
-
#info(enterprise_account_id_or_enterprise_account_name, archive_year, archive_month) ⇒ Object
Get archive for a single month.
-
#initialize(client) ⇒ Archive
constructor
A new instance of Archive.
-
#list(enterprise_account_id_or_enterprise_account_name) ⇒ Object
List existing archives.
Constructor Details
#initialize(client) ⇒ Archive
Returns a new instance of Archive.
1502 1503 1504 |
# File 'lib/platform-api/client.rb', line 1502 def initialize(client) @client = client end |
Instance Method Details
#info(enterprise_account_id_or_enterprise_account_name, archive_year, archive_month) ⇒ Object
Get archive for a single month.
1511 1512 1513 |
# File 'lib/platform-api/client.rb', line 1511 def info(enterprise_account_id_or_enterprise_account_name, archive_year, archive_month) @client.archive.info(enterprise_account_id_or_enterprise_account_name, archive_year, archive_month) end |
#list(enterprise_account_id_or_enterprise_account_name) ⇒ Object
List existing archives.
1518 1519 1520 |
# File 'lib/platform-api/client.rb', line 1518 def list(enterprise_account_id_or_enterprise_account_name) @client.archive.list(enterprise_account_id_or_enterprise_account_name) end |