Class: OneSignal::Responses::Player
Constant Summary
collapse
- ATTRIBUTES_WHITELIST =
%i[id identifier session_count language timezone
game_version device_os device_type device_model tags
ad_id last_active playtime amount_spent created_at
invalid_identifier badge_count sdk test_type ip].freeze
Class Method Summary
collapse
Instance Method Summary
collapse
#initialize
Class Method Details
.from_json(json) ⇒ Object
15
16
17
18
|
# File 'lib/onesignal/responses/player.rb', line 15
def self.from_json json
body = json.is_a?(String) ? JSON.parse(json) : json
new(body)
end
|
Instance Method Details
#invalid_identifier? ⇒ Boolean
11
12
13
|
# File 'lib/onesignal/responses/player.rb', line 11
def invalid_identifier?
invalid_identifier
end
|