Class: OneSignal::Responses::CsvExport

Inherits:
BaseResponse show all
Defined in:
lib/onesignal/responses/csv_export.rb

Overview

Example JSON

"csv_file_url": "https://onesignal.s3.amazonaws.com/csv_exports/test/users_abc123.csv.gz"

Constant Summary collapse

ATTRIBUTES_WHITELIST =
%i[csv_file_url].freeze

Class Method Summary collapse

Methods inherited from BaseResponse

#initialize

Constructor Details

This class inherits a constructor from OneSignal::Responses::BaseResponse

Class Method Details

.from_json(json) ⇒ Object



12
13
14
15
# File 'lib/onesignal/responses/csv_export.rb', line 12

def self.from_json json
  body = json.is_a?(String) ? JSON.parse(json) : json
  new(body)
end