Class: UntitledApi::InternalConstDeviceModelsResponse

Inherits:
BaseModel
  • Object
show all
Defined in:
lib/untitled_api/models/internal_const_device_models_response.rb

Overview

Response data

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

Constructor Details

#initialize(model = SKIP, type = SKIP, ap_type = SKIP, description = SKIP, display = SKIP, has_usb = SKIP, has_vble = SKIP, vble = SKIP, band24 = SKIP, fcc_dfs_ok = SKIP, ce_dfs_ok = SKIP, other_dfs_ok = SKIP, band5 = SKIP, has_poe_out = SKIP, max_poe_out = SKIP, has_module_port = SKIP, has_compass = SKIP, has_height = SKIP, has_extio = SKIP, extio = SKIP, radios = SKIP, has_wifi_band24 = SKIP, has_wifi_band5 = SKIP, has_scanning_radio = SKIP) ⇒ InternalConstDeviceModelsResponse

Returns a new instance of InternalConstDeviceModelsResponse.



173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 173

def initialize(model = SKIP,
               type = SKIP,
               ap_type = SKIP,
               description = SKIP,
               display = SKIP,
               has_usb = SKIP,
               has_vble = SKIP,
               vble = SKIP,
               band24 = SKIP,
               fcc_dfs_ok = SKIP,
               ce_dfs_ok = SKIP,
               other_dfs_ok = SKIP,
               band5 = SKIP,
               has_poe_out = SKIP,
               max_poe_out = SKIP,
               has_module_port = SKIP,
               has_compass = SKIP,
               has_height = SKIP,
               has_extio = SKIP,
               extio = SKIP,
               radios = SKIP,
               has_wifi_band24 = SKIP,
               has_wifi_band5 = SKIP,
               has_scanning_radio = SKIP)
  @model = model unless model == SKIP
  @type = type unless type == SKIP
  @ap_type = ap_type unless ap_type == SKIP
  @description = description unless description == SKIP
  @display = display unless display == SKIP
  @has_usb = has_usb unless has_usb == SKIP
  @has_vble = has_vble unless has_vble == SKIP
  @vble = vble unless vble == SKIP
  @band24 = band24 unless band24 == SKIP
  @fcc_dfs_ok = fcc_dfs_ok unless fcc_dfs_ok == SKIP
  @ce_dfs_ok = ce_dfs_ok unless ce_dfs_ok == SKIP
  @other_dfs_ok = other_dfs_ok unless other_dfs_ok == SKIP
  @band5 = band5 unless band5 == SKIP
  @has_poe_out = has_poe_out unless has_poe_out == SKIP
  @max_poe_out = max_poe_out unless max_poe_out == SKIP
  @has_module_port = has_module_port unless has_module_port == SKIP
  @has_compass = has_compass unless has_compass == SKIP
  @has_height = has_height unless has_height == SKIP
  @has_extio = has_extio unless has_extio == SKIP
  @extio = extio unless extio == SKIP
  @radios = radios unless radios == SKIP
  @has_wifi_band24 = has_wifi_band24 unless has_wifi_band24 == SKIP
  @has_wifi_band5 = has_wifi_band5 unless has_wifi_band5 == SKIP
  @has_scanning_radio = has_scanning_radio unless has_scanning_radio == SKIP
end

Instance Attribute Details

#ap_typeString

TODO: Write general description for this method

Returns:

  • (String)


22
23
24
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 22

def ap_type
  @ap_type
end

#band24Object

TODO: Write general description for this method

Returns:

  • (Object)


46
47
48
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 46

def band24
  @band24
end

#band5Object

TODO: Write general description for this method

Returns:

  • (Object)


62
63
64
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 62

def band5
  @band5
end

#ce_dfs_okObject

TODO: Write general description for this method

Returns:

  • (Object)


54
55
56
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 54

def ce_dfs_ok
  @ce_dfs_ok
end

#descriptionString

TODO: Write general description for this method

Returns:

  • (String)


26
27
28
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 26

def description
  @description
end

#displayString

TODO: Write general description for this method

Returns:

  • (String)


30
31
32
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 30

def display
  @display
end

#extioObject

TODO: Write general description for this method

Returns:

  • (Object)


90
91
92
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 90

def extio
  @extio
end

#fcc_dfs_okObject

TODO: Write general description for this method

Returns:

  • (Object)


50
51
52
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 50

def fcc_dfs_ok
  @fcc_dfs_ok
end

#has_compassObject

TODO: Write general description for this method

Returns:

  • (Object)


78
79
80
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 78

def has_compass
  @has_compass
end

#has_extioObject

TODO: Write general description for this method

Returns:

  • (Object)


86
87
88
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 86

def has_extio
  @has_extio
end

#has_heightObject

TODO: Write general description for this method

Returns:

  • (Object)


82
83
84
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 82

def has_height
  @has_height
end

#has_module_portObject

TODO: Write general description for this method

Returns:

  • (Object)


74
75
76
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 74

def has_module_port
  @has_module_port
end

#has_poe_outObject

TODO: Write general description for this method

Returns:

  • (Object)


66
67
68
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 66

def has_poe_out
  @has_poe_out
end

#has_scanning_radioObject

TODO: Write general description for this method

Returns:

  • (Object)


106
107
108
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 106

def has_scanning_radio
  @has_scanning_radio
end

#has_usbObject

TODO: Write general description for this method

Returns:

  • (Object)


34
35
36
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 34

def has_usb
  @has_usb
end

#has_vbleObject

TODO: Write general description for this method

Returns:

  • (Object)


38
39
40
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 38

def has_vble
  @has_vble
end

#has_wifi_band24Object

TODO: Write general description for this method

Returns:

  • (Object)


98
99
100
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 98

def has_wifi_band24
  @has_wifi_band24
end

#has_wifi_band5Object

TODO: Write general description for this method

Returns:

  • (Object)


102
103
104
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 102

def has_wifi_band5
  @has_wifi_band5
end

#max_poe_outFloat

TODO: Write general description for this method

Returns:

  • (Float)


70
71
72
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 70

def max_poe_out
  @max_poe_out
end

#modelString

TODO: Write general description for this method

Returns:

  • (String)


14
15
16
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 14

def model
  @model
end

#other_dfs_okObject

TODO: Write general description for this method

Returns:

  • (Object)


58
59
60
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 58

def other_dfs_ok
  @other_dfs_ok
end

#radiosObject

TODO: Write general description for this method

Returns:

  • (Object)


94
95
96
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 94

def radios
  @radios
end

#typeString

TODO: Write general description for this method

Returns:

  • (String)


18
19
20
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 18

def type
  @type
end

#vbleObject

TODO: Write general description for this method

Returns:

  • (Object)


42
43
44
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 42

def vble
  @vble
end

Class Method Details

.from_hash(hash) ⇒ Object

Creates an instance of the object from a hash.



224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 224

def self.from_hash(hash)
  return nil unless hash

  # Extract variables from the hash.
  model = hash.key?('model') ? hash['model'] : SKIP
  type = hash.key?('type') ? hash['type'] : SKIP
  ap_type = hash.key?('ap_type') ? hash['ap_type'] : SKIP
  description = hash.key?('description') ? hash['description'] : SKIP
  display = hash.key?('display') ? hash['display'] : SKIP
  has_usb = hash.key?('has_usb') ? hash['has_usb'] : SKIP
  has_vble = hash.key?('has_vble') ? hash['has_vble'] : SKIP
  vble = hash.key?('vble') ? hash['vble'] : SKIP
  band24 = hash.key?('band24') ? hash['band24'] : SKIP
  fcc_dfs_ok = hash.key?('fcc_dfs_ok') ? hash['fcc_dfs_ok'] : SKIP
  ce_dfs_ok = hash.key?('ce_dfs_ok') ? hash['ce_dfs_ok'] : SKIP
  other_dfs_ok = hash.key?('other_dfs_ok') ? hash['other_dfs_ok'] : SKIP
  band5 = hash.key?('band5') ? hash['band5'] : SKIP
  has_poe_out = hash.key?('has_poe_out') ? hash['has_poe_out'] : SKIP
  max_poe_out = hash.key?('max_poe_out') ? hash['max_poe_out'] : SKIP
  has_module_port =
    hash.key?('has_module_port') ? hash['has_module_port'] : SKIP
  has_compass = hash.key?('has_compass') ? hash['has_compass'] : SKIP
  has_height = hash.key?('has_height') ? hash['has_height'] : SKIP
  has_extio = hash.key?('has_extio') ? hash['has_extio'] : SKIP
  extio = hash.key?('extio') ? hash['extio'] : SKIP
  radios = hash.key?('radios') ? hash['radios'] : SKIP
  has_wifi_band24 =
    hash.key?('has_wifi_band24') ? hash['has_wifi_band24'] : SKIP
  has_wifi_band5 =
    hash.key?('has_wifi_band5') ? hash['has_wifi_band5'] : SKIP
  has_scanning_radio =
    hash.key?('has_scanning_radio') ? hash['has_scanning_radio'] : SKIP

  # Create object from extracted values.
  InternalConstDeviceModelsResponse.new(model,
                                        type,
                                        ap_type,
                                        description,
                                        display,
                                        has_usb,
                                        has_vble,
                                        vble,
                                        band24,
                                        fcc_dfs_ok,
                                        ce_dfs_ok,
                                        other_dfs_ok,
                                        band5,
                                        has_poe_out,
                                        max_poe_out,
                                        has_module_port,
                                        has_compass,
                                        has_height,
                                        has_extio,
                                        extio,
                                        radios,
                                        has_wifi_band24,
                                        has_wifi_band5,
                                        has_scanning_radio)
end

.namesObject

A mapping from model property names to API property names.



109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 109

def self.names
  @_hash = {} if @_hash.nil?
  @_hash['model'] = 'model'
  @_hash['type'] = 'type'
  @_hash['ap_type'] = 'ap_type'
  @_hash['description'] = 'description'
  @_hash['display'] = 'display'
  @_hash['has_usb'] = 'has_usb'
  @_hash['has_vble'] = 'has_vble'
  @_hash['vble'] = 'vble'
  @_hash['band24'] = 'band24'
  @_hash['fcc_dfs_ok'] = 'fcc_dfs_ok'
  @_hash['ce_dfs_ok'] = 'ce_dfs_ok'
  @_hash['other_dfs_ok'] = 'other_dfs_ok'
  @_hash['band5'] = 'band5'
  @_hash['has_poe_out'] = 'has_poe_out'
  @_hash['max_poe_out'] = 'max_poe_out'
  @_hash['has_module_port'] = 'has_module_port'
  @_hash['has_compass'] = 'has_compass'
  @_hash['has_height'] = 'has_height'
  @_hash['has_extio'] = 'has_extio'
  @_hash['extio'] = 'extio'
  @_hash['radios'] = 'radios'
  @_hash['has_wifi_band24'] = 'has_wifi_band24'
  @_hash['has_wifi_band5'] = 'has_wifi_band5'
  @_hash['has_scanning_radio'] = 'has_scanning_radio'
  @_hash
end

.nullablesObject

An array for nullable fields



169
170
171
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 169

def self.nullables
  []
end

.optionalsObject

An array for optional fields



139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# File 'lib/untitled_api/models/internal_const_device_models_response.rb', line 139

def self.optionals
  %w[
    model
    type
    ap_type
    description
    display
    has_usb
    has_vble
    vble
    band24
    fcc_dfs_ok
    ce_dfs_ok
    other_dfs_ok
    band5
    has_poe_out
    max_poe_out
    has_module_port
    has_compass
    has_height
    has_extio
    extio
    radios
    has_wifi_band24
    has_wifi_band5
    has_scanning_radio
  ]
end