Class: OneSignal::Player
Instance Method Summary
collapse
Methods inherited from BaseModel
#initialize, #inspect, to_proc
Instance Method Details
#created_at=(time) ⇒ Object
3
4
5
|
# File 'lib/onesignal/models/player.rb', line 3
def created_at=(time)
@created_at = Time.at(time)
end
|
#device_type=(type) ⇒ Object
7
8
9
10
11
12
13
|
# File 'lib/onesignal/models/player.rb', line 7
def device_type=(type)
if type.is_a?(Integer)
type = OneSignal::DEVICE_TYPES[type]
end
@device_type = type
end
|
#last_active=(time) ⇒ Object
15
16
17
|
# File 'lib/onesignal/models/player.rb', line 15
def last_active=(time)
@last_active = Time.at(time)
end
|