Class: UntitledApi::ApiV1SitesSleScopeIdMetricMetricImpactSummaryResponse1

Inherits:
BaseModel
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#to_hash, #to_json

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

#apObject

TODO: Write general description for this method

Returns:

  • (Object)


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

#classifierString

TODO: Write general description for this method

Returns:

  • (String)


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_firmwareObject

TODO: Write general description for this method

Returns:

  • (Object)


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_hardwareObject

TODO: Write general description for this method

Returns:

  • (Object)


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_osObject

TODO: Write general description for this method

Returns:

  • (Object)


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_typeObject

TODO: Write general description for this method

Returns:

  • (Object)


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

#failureString

TODO: Write general description for this method

Returns:

  • (String)


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

#mendFloat

TODO: Write general description for this method

Returns:

  • (Float)


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

#metricString

TODO: Write general description for this method

Returns:

  • (String)


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

#startFloat

TODO: Write general description for this method

Returns:

  • (Float)


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

#wlanObject

TODO: Write general description for this method

Returns:

  • (Object)


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

.namesObject

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

.nullablesObject

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

.optionalsObject

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