Class: UntitledApi::ApiV1SitesStatsDevicesClientsResponse1
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::ApiV1SitesStatsDevicesClientsResponse1
- Defined in:
- lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb
Overview
ApiV1SitesStatsDevicesClientsResponse1 Model.
Instance Attribute Summary collapse
-
#annotation ⇒ String
TODO: Write general description for this method.
-
#ap_id ⇒ String
TODO: Write general description for this method.
-
#ap_mac ⇒ String
TODO: Write general description for this method.
-
#assoc_time ⇒ Float
TODO: Write general description for this method.
-
#band ⇒ String
TODO: Write general description for this method.
-
#channel ⇒ Float
TODO: Write general description for this method.
-
#dual_band ⇒ Object
TODO: Write general description for this method.
-
#family ⇒ String
TODO: Write general description for this method.
-
#group ⇒ String
TODO: Write general description for this method.
-
#hostname ⇒ String
TODO: Write general description for this method.
-
#id ⇒ String
TODO: Write general description for this method.
-
#idle_time ⇒ Float
TODO: Write general description for this method.
-
#ip ⇒ String
TODO: Write general description for this method.
-
#is_guest ⇒ Object
TODO: Write general description for this method.
-
#key_mgmt ⇒ String
TODO: Write general description for this method.
-
#last_seen ⇒ Float
TODO: Write general description for this method.
-
#mac ⇒ String
TODO: Write general description for this method.
-
#manufacture ⇒ String
TODO: Write general description for this method.
-
#model ⇒ String
TODO: Write general description for this method.
-
#os ⇒ String
TODO: Write general description for this method.
-
#proto ⇒ String
TODO: Write general description for this method.
-
#psk_id ⇒ String
TODO: Write general description for this method.
-
#rssi ⇒ Float
TODO: Write general description for this method.
-
#rx_bps ⇒ Float
TODO: Write general description for this method.
-
#rx_bytes ⇒ Float
TODO: Write general description for this method.
-
#rx_pkts ⇒ Float
TODO: Write general description for this method.
-
#rx_rate ⇒ Float
TODO: Write general description for this method.
-
#rx_retries ⇒ Float
TODO: Write general description for this method.
-
#site_id ⇒ String
TODO: Write general description for this method.
-
#snr ⇒ Float
TODO: Write general description for this method.
-
#ssid ⇒ String
TODO: Write general description for this method.
-
#ttl ⇒ Float
TODO: Write general description for this method.
-
#tx_bps ⇒ Float
TODO: Write general description for this method.
-
#tx_bytes ⇒ Float
TODO: Write general description for this method.
-
#tx_pkts ⇒ Float
TODO: Write general description for this method.
-
#tx_rate ⇒ Float
TODO: Write general description for this method.
-
#tx_retries ⇒ Float
TODO: Write general description for this method.
-
#uptime ⇒ Float
TODO: Write general description for this method.
-
#vlan_id ⇒ String
TODO: Write general description for this method.
-
#wlan_id ⇒ String
TODO: Write general description for this method.
Class Method Summary collapse
-
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
-
.names ⇒ Object
A mapping from model property names to API property names.
-
.nullables ⇒ Object
An array for nullable fields.
-
.optionals ⇒ Object
An array for optional fields.
Instance Method Summary collapse
Methods inherited from BaseModel
Constructor Details
#initialize(mac = SKIP, site_id = SKIP, assoc_time = SKIP, family = SKIP, model = SKIP, os = SKIP, manufacture = SKIP, ap_mac = SKIP, ap_id = SKIP, last_seen = SKIP, uptime = SKIP, dual_band = SKIP, key_mgmt = SKIP, group = SKIP, band = SKIP, channel = SKIP, vlan_id = SKIP, proto = SKIP, rssi = SKIP, snr = SKIP, idle_time = SKIP, tx_rate = SKIP, rx_rate = SKIP, tx_pkts = SKIP, rx_pkts = SKIP, tx_bytes = SKIP, rx_bytes = SKIP, tx_retries = SKIP, rx_retries = SKIP, tx_bps = SKIP, rx_bps = SKIP, hostname = SKIP, ip = SKIP, ssid = SKIP, wlan_id = SKIP, is_guest = SKIP, psk_id = SKIP, ttl = SKIP, id = SKIP, annotation = SKIP) ⇒ ApiV1SitesStatsDevicesClientsResponse1
Returns a new instance of ApiV1SitesStatsDevicesClientsResponse1.
269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 269 def initialize(mac = SKIP, site_id = SKIP, assoc_time = SKIP, family = SKIP, model = SKIP, os = SKIP, manufacture = SKIP, ap_mac = SKIP, ap_id = SKIP, last_seen = SKIP, uptime = SKIP, dual_band = SKIP, key_mgmt = SKIP, group = SKIP, band = SKIP, channel = SKIP, vlan_id = SKIP, proto = SKIP, rssi = SKIP, snr = SKIP, idle_time = SKIP, tx_rate = SKIP, rx_rate = SKIP, tx_pkts = SKIP, rx_pkts = SKIP, tx_bytes = SKIP, rx_bytes = SKIP, tx_retries = SKIP, rx_retries = SKIP, tx_bps = SKIP, rx_bps = SKIP, hostname = SKIP, ip = SKIP, ssid = SKIP, wlan_id = SKIP, is_guest = SKIP, psk_id = SKIP, ttl = SKIP, id = SKIP, annotation = SKIP) @mac = mac unless mac == SKIP @site_id = site_id unless site_id == SKIP @assoc_time = assoc_time unless assoc_time == SKIP @family = family unless family == SKIP @model = model unless model == SKIP @os = os unless os == SKIP @manufacture = manufacture unless manufacture == SKIP @ap_mac = ap_mac unless ap_mac == SKIP @ap_id = ap_id unless ap_id == SKIP @last_seen = last_seen unless last_seen == SKIP @uptime = uptime unless uptime == SKIP @dual_band = dual_band unless dual_band == SKIP @key_mgmt = key_mgmt unless key_mgmt == SKIP @group = group unless group == SKIP @band = band unless band == SKIP @channel = channel unless channel == SKIP @vlan_id = vlan_id unless vlan_id == SKIP @proto = proto unless proto == SKIP @rssi = rssi unless rssi == SKIP @snr = snr unless snr == SKIP @idle_time = idle_time unless idle_time == SKIP @tx_rate = tx_rate unless tx_rate == SKIP @rx_rate = rx_rate unless rx_rate == SKIP @tx_pkts = tx_pkts unless tx_pkts == SKIP @rx_pkts = rx_pkts unless rx_pkts == SKIP @tx_bytes = tx_bytes unless tx_bytes == SKIP @rx_bytes = rx_bytes unless rx_bytes == SKIP @tx_retries = tx_retries unless tx_retries == SKIP @rx_retries = rx_retries unless rx_retries == SKIP @tx_bps = tx_bps unless tx_bps == SKIP @rx_bps = rx_bps unless rx_bps == SKIP @hostname = hostname unless hostname == SKIP @ip = ip unless ip == SKIP @ssid = ssid unless ssid == SKIP @wlan_id = wlan_id unless wlan_id == SKIP @is_guest = is_guest unless is_guest == SKIP @psk_id = psk_id unless psk_id == SKIP @ttl = ttl unless ttl == SKIP @id = id unless id == SKIP @annotation = annotation unless annotation == SKIP end |
Instance Attribute Details
#annotation ⇒ String
TODO: Write general description for this method
170 171 172 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 170 def annotation @annotation end |
#ap_id ⇒ String
TODO: Write general description for this method
46 47 48 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 46 def ap_id @ap_id end |
#ap_mac ⇒ String
TODO: Write general description for this method
42 43 44 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 42 def ap_mac @ap_mac end |
#assoc_time ⇒ Float
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 22 def assoc_time @assoc_time end |
#band ⇒ String
TODO: Write general description for this method
70 71 72 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 70 def band @band end |
#channel ⇒ Float
TODO: Write general description for this method
74 75 76 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 74 def channel @channel end |
#dual_band ⇒ Object
TODO: Write general description for this method
58 59 60 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 58 def dual_band @dual_band end |
#family ⇒ String
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 26 def family @family end |
#group ⇒ String
TODO: Write general description for this method
66 67 68 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 66 def group @group end |
#hostname ⇒ String
TODO: Write general description for this method
138 139 140 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 138 def hostname @hostname end |
#id ⇒ String
TODO: Write general description for this method
166 167 168 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 166 def id @id end |
#idle_time ⇒ Float
TODO: Write general description for this method
94 95 96 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 94 def idle_time @idle_time end |
#ip ⇒ String
TODO: Write general description for this method
142 143 144 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 142 def ip @ip end |
#is_guest ⇒ Object
TODO: Write general description for this method
154 155 156 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 154 def is_guest @is_guest end |
#key_mgmt ⇒ String
TODO: Write general description for this method
62 63 64 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 62 def key_mgmt @key_mgmt end |
#last_seen ⇒ Float
TODO: Write general description for this method
50 51 52 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 50 def last_seen @last_seen end |
#mac ⇒ String
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 14 def mac @mac end |
#manufacture ⇒ String
TODO: Write general description for this method
38 39 40 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 38 def manufacture @manufacture end |
#model ⇒ String
TODO: Write general description for this method
30 31 32 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 30 def model @model end |
#os ⇒ String
TODO: Write general description for this method
34 35 36 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 34 def os @os end |
#proto ⇒ String
TODO: Write general description for this method
82 83 84 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 82 def proto @proto end |
#psk_id ⇒ String
TODO: Write general description for this method
158 159 160 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 158 def psk_id @psk_id end |
#rssi ⇒ Float
TODO: Write general description for this method
86 87 88 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 86 def rssi @rssi end |
#rx_bps ⇒ Float
TODO: Write general description for this method
134 135 136 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 134 def rx_bps @rx_bps end |
#rx_bytes ⇒ Float
TODO: Write general description for this method
118 119 120 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 118 def rx_bytes @rx_bytes end |
#rx_pkts ⇒ Float
TODO: Write general description for this method
110 111 112 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 110 def rx_pkts @rx_pkts end |
#rx_rate ⇒ Float
TODO: Write general description for this method
102 103 104 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 102 def rx_rate @rx_rate end |
#rx_retries ⇒ Float
TODO: Write general description for this method
126 127 128 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 126 def rx_retries @rx_retries end |
#site_id ⇒ String
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 18 def site_id @site_id end |
#snr ⇒ Float
TODO: Write general description for this method
90 91 92 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 90 def snr @snr end |
#ssid ⇒ String
TODO: Write general description for this method
146 147 148 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 146 def ssid @ssid end |
#ttl ⇒ Float
TODO: Write general description for this method
162 163 164 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 162 def ttl @ttl end |
#tx_bps ⇒ Float
TODO: Write general description for this method
130 131 132 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 130 def tx_bps @tx_bps end |
#tx_bytes ⇒ Float
TODO: Write general description for this method
114 115 116 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 114 def tx_bytes @tx_bytes end |
#tx_pkts ⇒ Float
TODO: Write general description for this method
106 107 108 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 106 def tx_pkts @tx_pkts end |
#tx_rate ⇒ Float
TODO: Write general description for this method
98 99 100 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 98 def tx_rate @tx_rate end |
#tx_retries ⇒ Float
TODO: Write general description for this method
122 123 124 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 122 def tx_retries @tx_retries end |
#uptime ⇒ Float
TODO: Write general description for this method
54 55 56 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 54 def uptime @uptime end |
#vlan_id ⇒ String
TODO: Write general description for this method
78 79 80 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 78 def vlan_id @vlan_id end |
#wlan_id ⇒ String
TODO: Write general description for this method
150 151 152 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 150 def wlan_id @wlan_id end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 352 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. mac = hash.key?('mac') ? hash['mac'] : SKIP site_id = hash.key?('site_id') ? hash['site_id'] : SKIP assoc_time = hash.key?('assoc_time') ? hash['assoc_time'] : SKIP family = hash.key?('family') ? hash['family'] : SKIP model = hash.key?('model') ? hash['model'] : SKIP os = hash.key?('os') ? hash['os'] : SKIP manufacture = hash.key?('manufacture') ? hash['manufacture'] : SKIP ap_mac = hash.key?('ap_mac') ? hash['ap_mac'] : SKIP ap_id = hash.key?('ap_id') ? hash['ap_id'] : SKIP last_seen = hash.key?('last_seen') ? hash['last_seen'] : SKIP uptime = hash.key?('uptime') ? hash['uptime'] : SKIP dual_band = hash.key?('dual_band') ? hash['dual_band'] : SKIP key_mgmt = hash.key?('key_mgmt') ? hash['key_mgmt'] : SKIP group = hash.key?('group') ? hash['group'] : SKIP band = hash.key?('band') ? hash['band'] : SKIP channel = hash.key?('channel') ? hash['channel'] : SKIP vlan_id = hash.key?('vlan_id') ? hash['vlan_id'] : SKIP proto = hash.key?('proto') ? hash['proto'] : SKIP rssi = hash.key?('rssi') ? hash['rssi'] : SKIP snr = hash.key?('snr') ? hash['snr'] : SKIP idle_time = hash.key?('idle_time') ? hash['idle_time'] : SKIP tx_rate = hash.key?('tx_rate') ? hash['tx_rate'] : SKIP rx_rate = hash.key?('rx_rate') ? hash['rx_rate'] : SKIP tx_pkts = hash.key?('tx_pkts') ? hash['tx_pkts'] : SKIP rx_pkts = hash.key?('rx_pkts') ? hash['rx_pkts'] : SKIP tx_bytes = hash.key?('tx_bytes') ? hash['tx_bytes'] : SKIP rx_bytes = hash.key?('rx_bytes') ? hash['rx_bytes'] : SKIP tx_retries = hash.key?('tx_retries') ? hash['tx_retries'] : SKIP rx_retries = hash.key?('rx_retries') ? hash['rx_retries'] : SKIP tx_bps = hash.key?('tx_bps') ? hash['tx_bps'] : SKIP rx_bps = hash.key?('rx_bps') ? hash['rx_bps'] : SKIP hostname = hash.key?('hostname') ? hash['hostname'] : SKIP ip = hash.key?('ip') ? hash['ip'] : SKIP ssid = hash.key?('ssid') ? hash['ssid'] : SKIP wlan_id = hash.key?('wlan_id') ? hash['wlan_id'] : SKIP is_guest = hash.key?('is_guest') ? hash['is_guest'] : SKIP psk_id = hash.key?('psk_id') ? hash['psk_id'] : SKIP ttl = hash.key?('_ttl') ? hash['_ttl'] : SKIP id = hash.key?('_id') ? hash['_id'] : SKIP annotation = hash.key?('annotation') ? hash['annotation'] : SKIP # Create object from extracted values. ApiV1SitesStatsDevicesClientsResponse1.new(mac, site_id, assoc_time, family, model, os, manufacture, ap_mac, ap_id, last_seen, uptime, dual_band, key_mgmt, group, band, channel, vlan_id, proto, rssi, snr, idle_time, tx_rate, rx_rate, tx_pkts, rx_pkts, tx_bytes, rx_bytes, tx_retries, rx_retries, tx_bps, rx_bps, hostname, ip, ssid, wlan_id, is_guest, psk_id, ttl, id, annotation) end |
.names ⇒ Object
A mapping from model property names to API property names.
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 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 173 def self.names @_hash = {} if @_hash.nil? @_hash['mac'] = 'mac' @_hash['site_id'] = 'site_id' @_hash['assoc_time'] = 'assoc_time' @_hash['family'] = 'family' @_hash['model'] = 'model' @_hash['os'] = 'os' @_hash['manufacture'] = 'manufacture' @_hash['ap_mac'] = 'ap_mac' @_hash['ap_id'] = 'ap_id' @_hash['last_seen'] = 'last_seen' @_hash['uptime'] = 'uptime' @_hash['dual_band'] = 'dual_band' @_hash['key_mgmt'] = 'key_mgmt' @_hash['group'] = 'group' @_hash['band'] = 'band' @_hash['channel'] = 'channel' @_hash['vlan_id'] = 'vlan_id' @_hash['proto'] = 'proto' @_hash['rssi'] = 'rssi' @_hash['snr'] = 'snr' @_hash['idle_time'] = 'idle_time' @_hash['tx_rate'] = 'tx_rate' @_hash['rx_rate'] = 'rx_rate' @_hash['tx_pkts'] = 'tx_pkts' @_hash['rx_pkts'] = 'rx_pkts' @_hash['tx_bytes'] = 'tx_bytes' @_hash['rx_bytes'] = 'rx_bytes' @_hash['tx_retries'] = 'tx_retries' @_hash['rx_retries'] = 'rx_retries' @_hash['tx_bps'] = 'tx_bps' @_hash['rx_bps'] = 'rx_bps' @_hash['hostname'] = 'hostname' @_hash['ip'] = 'ip' @_hash['ssid'] = 'ssid' @_hash['wlan_id'] = 'wlan_id' @_hash['is_guest'] = 'is_guest' @_hash['psk_id'] = 'psk_id' @_hash['ttl'] = '_ttl' @_hash['id'] = '_id' @_hash['annotation'] = 'annotation' @_hash end |
.nullables ⇒ Object
An array for nullable fields
265 266 267 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 265 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
219 220 221 222 223 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 |
# File 'lib/untitled_api/models/api_v1_sites_stats_devices_clients_response1.rb', line 219 def self.optionals %w[ mac site_id assoc_time family model os manufacture ap_mac ap_id last_seen uptime dual_band key_mgmt group band channel vlan_id proto rssi snr idle_time tx_rate rx_rate tx_pkts rx_pkts tx_bytes rx_bytes tx_retries rx_retries tx_bps rx_bps hostname ip ssid wlan_id is_guest psk_id ttl id annotation ] end |