class KhipuChaski::Device
Attributes
extra_data[RW]
recipients[RW]
token_id[RW]
Public Class Methods
attribute_map()
click to toggle source
attribute mapping from ruby-style variable name to JSON key
# File lib/khipu-chaski-api-client/models/device.rb, line 6 def self.attribute_map { # token para notificaciones asociado al dispositivo. Tiene la forma <platform>:<registryId>, donde platform puede tomar los valores \"and\" o \"ios\". :'token_id' => :'tokenId', # Lista de receptores asociados al dispositivo :'recipients' => :'recipients', # informacion adicional del dispositivo :'extra_data' => :'extraData' } end
new(attributes = {})
click to toggle source
# File lib/khipu-chaski-api-client/models/device.rb, line 31 def initialize(attributes = {}) return if !attributes.is_a?(Hash) || attributes.empty? # convert string to symbol for hash key attributes = attributes.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo} if attributes[:'tokenId'] self.token_id = attributes[:'tokenId'] end if attributes[:'recipients'] if (value = attributes[:'recipients']).is_a?(Array) self.recipients = value end end if attributes[:'extraData'] self.extra_data = attributes[:'extraData'] end end
swagger_types()
click to toggle source
attribute type
# File lib/khipu-chaski-api-client/models/device.rb, line 22 def self.swagger_types { :'token_id' => :'String', :'recipients' => :'Array<String>', :'extra_data' => :'String' } end