Class: Urbanairship::Devices::Attributes

Inherits:
Object
  • Object
show all
Defined in:
lib/urbanairship/devices/attributes.rb

Constant Summary collapse

SET =
'set'
REMOVE =
'remove'

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Attributes

Returns a new instance of Attributes.



9
10
11
# File 'lib/urbanairship/devices/attributes.rb', line 9

def initialize(attributes)
  @attributes = attributes
end

Instance Method Details

#payloadObject



13
14
15
# File 'lib/urbanairship/devices/attributes.rb', line 13

def payload
  @payload ||= { attributes: attributes_list }
end