Class: OneSignal::Responses::Player

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

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

Methods inherited from BaseResponse

#initialize

Constructor Details

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

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

Returns:

  • (Boolean)


11
12
13
# File 'lib/onesignal/responses/player.rb', line 11

def invalid_identifier?
  invalid_identifier
end