Class: SoftLayer::NetworkMonitorResponseType
- Inherits:
-
Struct
- Object
- Struct
- SoftLayer::NetworkMonitorResponseType
- Defined in:
- lib/softlayer/NetworkMonitor.rb
Overview
This struct represents a network monitor response type used for configuring network monitor responses when created.
Instance Attribute Summary collapse
-
#action_description ⇒ Object
Returns the value of attribute action_description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#level ⇒ Object
Returns the value of attribute level.
Instance Method Summary collapse
-
#initialize(response_type_data) ⇒ NetworkMonitorResponseType
constructor
A new instance of NetworkMonitorResponseType.
Constructor Details
#initialize(response_type_data) ⇒ NetworkMonitorResponseType
Returns a new instance of NetworkMonitorResponseType.
57 58 59 60 61 |
# File 'lib/softlayer/NetworkMonitor.rb', line 57 def initialize(response_type_data) self.action_description = response_type_data['actionDescription'] self.id = response_type_data['id'] self.level = response_type_data['level'] end |
Instance Attribute Details
#action_description ⇒ Object
Returns the value of attribute action_description
56 57 58 |
# File 'lib/softlayer/NetworkMonitor.rb', line 56 def action_description @action_description end |
#id ⇒ Object
Returns the value of attribute id
56 57 58 |
# File 'lib/softlayer/NetworkMonitor.rb', line 56 def id @id end |
#level ⇒ Object
Returns the value of attribute level
56 57 58 |
# File 'lib/softlayer/NetworkMonitor.rb', line 56 def level @level end |