Class: UntitledApi::ApiV1ConstApChannelsResponse
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::ApiV1ConstApChannelsResponse
- Defined in:
- lib/untitled_api/models/api_v1_const_ap_channels_response.rb
Overview
Response data
Instance Attribute Summary collapse
-
#band24_40mhz_allowed ⇒ Object
TODO: Write general description for this method.
-
#band24_channels ⇒ Object
TODO: Write general description for this method.
-
#band24_enabled ⇒ Object
TODO: Write general description for this method.
-
#band5_channels ⇒ Object
TODO: Write general description for this method.
-
#band5_enabled ⇒ Object
TODO: Write general description for this method.
-
#band6_channels ⇒ Object
TODO: Write general description for this method.
-
#band6_enabled ⇒ Object
TODO: Write general description for this method.
-
#code ⇒ Float
TODO: Write general description for this method.
-
#dfs_ok ⇒ Object
TODO: Write general description for this method.
-
#key ⇒ String
TODO: Write general description for this method.
-
#name ⇒ 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
-
#initialize(key = SKIP, code = SKIP, name = SKIP, band5_enabled = SKIP, band24_enabled = SKIP, band6_enabled = SKIP, band24_40mhz_allowed = SKIP, dfs_ok = SKIP, band5_channels = SKIP, band24_channels = SKIP, band6_channels = SKIP) ⇒ ApiV1ConstApChannelsResponse
constructor
A new instance of ApiV1ConstApChannelsResponse.
Methods inherited from BaseModel
Constructor Details
#initialize(key = SKIP, code = SKIP, name = SKIP, band5_enabled = SKIP, band24_enabled = SKIP, band6_enabled = SKIP, band24_40mhz_allowed = SKIP, dfs_ok = SKIP, band5_channels = SKIP, band24_channels = SKIP, band6_channels = SKIP) ⇒ ApiV1ConstApChannelsResponse
Returns a new instance of ApiV1ConstApChannelsResponse.
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 95 def initialize(key = SKIP, code = SKIP, name = SKIP, band5_enabled = SKIP, band24_enabled = SKIP, band6_enabled = SKIP, band24_40mhz_allowed = SKIP, dfs_ok = SKIP, band5_channels = SKIP, band24_channels = SKIP, band6_channels = SKIP) @key = key unless key == SKIP @code = code unless code == SKIP @name = name unless name == SKIP @band5_enabled = band5_enabled unless band5_enabled == SKIP @band24_enabled = band24_enabled unless band24_enabled == SKIP @band6_enabled = band6_enabled unless band6_enabled == SKIP @band24_40mhz_allowed = band24_40mhz_allowed unless band24_40mhz_allowed == SKIP @dfs_ok = dfs_ok unless dfs_ok == SKIP @band5_channels = band5_channels unless band5_channels == SKIP @band24_channels = band24_channels unless band24_channels == SKIP @band6_channels = band6_channels unless band6_channels == SKIP end |
Instance Attribute Details
#band24_40mhz_allowed ⇒ Object
TODO: Write general description for this method
38 39 40 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 38 def band24_40mhz_allowed @band24_40mhz_allowed end |
#band24_channels ⇒ Object
TODO: Write general description for this method
50 51 52 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 50 def band24_channels @band24_channels end |
#band24_enabled ⇒ Object
TODO: Write general description for this method
30 31 32 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 30 def band24_enabled @band24_enabled end |
#band5_channels ⇒ Object
TODO: Write general description for this method
46 47 48 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 46 def band5_channels @band5_channels end |
#band5_enabled ⇒ Object
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 26 def band5_enabled @band5_enabled end |
#band6_channels ⇒ Object
TODO: Write general description for this method
54 55 56 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 54 def band6_channels @band6_channels end |
#band6_enabled ⇒ Object
TODO: Write general description for this method
34 35 36 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 34 def band6_enabled @band6_enabled end |
#code ⇒ Float
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 18 def code @code end |
#dfs_ok ⇒ Object
TODO: Write general description for this method
42 43 44 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 42 def dfs_ok @dfs_ok end |
#key ⇒ String
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 14 def key @key end |
#name ⇒ String
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 22 def name @name end |
Class Method Details
.from_hash(hash) ⇒ Object
Creates an instance of the object from a hash.
120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 120 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. key = hash.key?('key') ? hash['key'] : SKIP code = hash.key?('code') ? hash['code'] : SKIP name = hash.key?('name') ? hash['name'] : SKIP band5_enabled = hash.key?('band5_enabled') ? hash['band5_enabled'] : SKIP band24_enabled = hash.key?('band24_enabled') ? hash['band24_enabled'] : SKIP band6_enabled = hash.key?('band6_enabled') ? hash['band6_enabled'] : SKIP band24_40mhz_allowed = hash.key?('band24_40mhz_allowed') ? hash['band24_40mhz_allowed'] : SKIP dfs_ok = hash.key?('dfs_ok') ? hash['dfs_ok'] : SKIP band5_channels = hash.key?('band5_channels') ? hash['band5_channels'] : SKIP band24_channels = hash.key?('band24_channels') ? hash['band24_channels'] : SKIP band6_channels = hash.key?('band6_channels') ? hash['band6_channels'] : SKIP # Create object from extracted values. ApiV1ConstApChannelsResponse.new(key, code, name, band5_enabled, band24_enabled, band6_enabled, band24_40mhz_allowed, dfs_ok, band5_channels, band24_channels, band6_channels) end |
.names ⇒ Object
A mapping from model property names to API property names.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 57 def self.names @_hash = {} if @_hash.nil? @_hash['key'] = 'key' @_hash['code'] = 'code' @_hash['name'] = 'name' @_hash['band5_enabled'] = 'band5_enabled' @_hash['band24_enabled'] = 'band24_enabled' @_hash['band6_enabled'] = 'band6_enabled' @_hash['band24_40mhz_allowed'] = 'band24_40mhz_allowed' @_hash['dfs_ok'] = 'dfs_ok' @_hash['band5_channels'] = 'band5_channels' @_hash['band24_channels'] = 'band24_channels' @_hash['band6_channels'] = 'band6_channels' @_hash end |
.nullables ⇒ Object
An array for nullable fields
91 92 93 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 91 def self.nullables [] end |
.optionals ⇒ Object
An array for optional fields
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 |
# File 'lib/untitled_api/models/api_v1_const_ap_channels_response.rb', line 74 def self.optionals %w[ key code name band5_enabled band24_enabled band6_enabled band24_40mhz_allowed dfs_ok band5_channels band24_channels band6_channels ] end |