Class: UntitledApi::ApiV1SitesSleScopeIdMetricMetricImpactSummaryResponse1
- Inherits:
-
BaseModel
- Object
- CoreLibrary::BaseModel
- BaseModel
- UntitledApi::ApiV1SitesSleScopeIdMetricMetricImpactSummaryResponse1
- Defined in:
- lib/untitled_api/models/api_v1_sites_sle_scope_id_metric_metric_impact_summary_response1.rb
Overview
ApiV1SitesSleScopeIdMetricMetricImpactSummaryResponse1 Model.
Instance Attribute Summary collapse
-
#ap ⇒ Object
TODO: Write general description for this method.
-
#classifier ⇒ String
TODO: Write general description for this method.
-
#device_firmware ⇒ Object
TODO: Write general description for this method.
-
#device_hardware ⇒ Object
TODO: Write general description for this method.
-
#device_os ⇒ Object
TODO: Write general description for this method.
-
#device_type ⇒ Object
TODO: Write general description for this method.
-
#failure ⇒ String
TODO: Write general description for this method.
-
#mend ⇒ Float
TODO: Write general description for this method.
-
#metric ⇒ String
TODO: Write general description for this method.
-
#start ⇒ Float
TODO: Write general description for this method.
-
#wlan ⇒ Object
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(start = SKIP, mend = SKIP, metric = SKIP, classifier = SKIP, failure = SKIP, ap = SKIP, wlan = SKIP, device_type = SKIP, device_os = SKIP, device_firmware = SKIP, device_hardware = SKIP) ⇒ ApiV1SitesSleScopeIdMetricMetricImpactSummaryResponse1
constructor
A new instance of ApiV1SitesSleScopeIdMetricMetricImpactSummaryResponse1.
Methods inherited from BaseModel
Constructor Details
#initialize(start = SKIP, mend = SKIP, metric = SKIP, classifier = SKIP, failure = SKIP, ap = SKIP, wlan = SKIP, device_type = SKIP, device_os = SKIP, device_firmware = SKIP, device_hardware = SKIP) ⇒ ApiV1SitesSleScopeIdMetricMetricImpactSummaryResponse1
Returns a new instance of ApiV1SitesSleScopeIdMetricMetricImpactSummaryResponse1.
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_sites_sle_scope_id_metric_metric_impact_summary_response1.rb', line 95 def initialize(start = SKIP, mend = SKIP, metric = SKIP, classifier = SKIP, failure = SKIP, ap = SKIP, wlan = SKIP, device_type = SKIP, device_os = SKIP, device_firmware = SKIP, device_hardware = SKIP) @start = start unless start == SKIP @mend = mend unless mend == SKIP @metric = metric unless metric == SKIP @classifier = classifier unless classifier == SKIP @failure = failure unless failure == SKIP @ap = ap unless ap == SKIP @wlan = wlan unless wlan == SKIP @device_type = device_type unless device_type == SKIP @device_os = device_os unless device_os == SKIP @device_firmware = device_firmware unless device_firmware == SKIP @device_hardware = device_hardware unless device_hardware == SKIP end |
Instance Attribute Details
#ap ⇒ Object
TODO: Write general description for this method
34 35 36 |
# File 'lib/untitled_api/models/api_v1_sites_sle_scope_id_metric_metric_impact_summary_response1.rb', line 34 def ap @ap end |
#classifier ⇒ String
TODO: Write general description for this method
26 27 28 |
# File 'lib/untitled_api/models/api_v1_sites_sle_scope_id_metric_metric_impact_summary_response1.rb', line 26 def classifier @classifier end |
#device_firmware ⇒ Object
TODO: Write general description for this method
50 51 52 |
# File 'lib/untitled_api/models/api_v1_sites_sle_scope_id_metric_metric_impact_summary_response1.rb', line 50 def device_firmware @device_firmware end |
#device_hardware ⇒ Object
TODO: Write general description for this method
54 55 56 |
# File 'lib/untitled_api/models/api_v1_sites_sle_scope_id_metric_metric_impact_summary_response1.rb', line 54 def device_hardware @device_hardware end |
#device_os ⇒ Object
TODO: Write general description for this method
46 47 48 |
# File 'lib/untitled_api/models/api_v1_sites_sle_scope_id_metric_metric_impact_summary_response1.rb', line 46 def device_os @device_os end |
#device_type ⇒ Object
TODO: Write general description for this method
42 43 44 |
# File 'lib/untitled_api/models/api_v1_sites_sle_scope_id_metric_metric_impact_summary_response1.rb', line 42 def device_type @device_type end |
#failure ⇒ String
TODO: Write general description for this method
30 31 32 |
# File 'lib/untitled_api/models/api_v1_sites_sle_scope_id_metric_metric_impact_summary_response1.rb', line 30 def failure @failure end |
#mend ⇒ Float
TODO: Write general description for this method
18 19 20 |
# File 'lib/untitled_api/models/api_v1_sites_sle_scope_id_metric_metric_impact_summary_response1.rb', line 18 def mend @mend end |
#metric ⇒ String
TODO: Write general description for this method
22 23 24 |
# File 'lib/untitled_api/models/api_v1_sites_sle_scope_id_metric_metric_impact_summary_response1.rb', line 22 def metric @metric end |
#start ⇒ Float
TODO: Write general description for this method
14 15 16 |
# File 'lib/untitled_api/models/api_v1_sites_sle_scope_id_metric_metric_impact_summary_response1.rb', line 14 def start @start end |
#wlan ⇒ Object
TODO: Write general description for this method
38 39 40 |
# File 'lib/untitled_api/models/api_v1_sites_sle_scope_id_metric_metric_impact_summary_response1.rb', line 38 def wlan @wlan 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 |
# File 'lib/untitled_api/models/api_v1_sites_sle_scope_id_metric_metric_impact_summary_response1.rb', line 120 def self.from_hash(hash) return nil unless hash # Extract variables from the hash. start = hash.key?('start') ? hash['start'] : SKIP mend = hash.key?('end') ? hash['end'] : SKIP metric = hash.key?('metric') ? hash['metric'] : SKIP classifier = hash.key?('classifier') ? hash['classifier'] : SKIP failure = hash.key?('failure') ? hash['failure'] : SKIP ap = hash.key?('ap') ? hash['ap'] : SKIP wlan = hash.key?('wlan') ? hash['wlan'] : SKIP device_type = hash.key?('device_type') ? hash['device_type'] : SKIP device_os = hash.key?('device_os') ? hash['device_os'] : SKIP device_firmware = hash.key?('device_firmware') ? hash['device_firmware'] : SKIP device_hardware = hash.key?('device_hardware') ? hash['device_hardware'] : SKIP # Create object from extracted values. ApiV1SitesSleScopeIdMetricMetricImpactSummaryResponse1.new(start, mend, metric, classifier, failure, ap, wlan, device_type, device_os, device_firmware, device_hardware) 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_sites_sle_scope_id_metric_metric_impact_summary_response1.rb', line 57 def self.names @_hash = {} if @_hash.nil? @_hash['start'] = 'start' @_hash['mend'] = 'end' @_hash['metric'] = 'metric' @_hash['classifier'] = 'classifier' @_hash['failure'] = 'failure' @_hash['ap'] = 'ap' @_hash['wlan'] = 'wlan' @_hash['device_type'] = 'device_type' @_hash['device_os'] = 'device_os' @_hash['device_firmware'] = 'device_firmware' @_hash['device_hardware'] = 'device_hardware' @_hash end |
.nullables ⇒ Object
An array for nullable fields
91 92 93 |
# File 'lib/untitled_api/models/api_v1_sites_sle_scope_id_metric_metric_impact_summary_response1.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_sites_sle_scope_id_metric_metric_impact_summary_response1.rb', line 74 def self.optionals %w[ start mend metric classifier failure ap wlan device_type device_os device_firmware device_hardware ] end |