Class: SoftLayer::NetworkMonitorResponseType

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

Instance Method Summary collapse

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_descriptionObject

Returns the value of attribute action_description

Returns:

  • (Object)

    the current value of action_description



56
57
58
# File 'lib/softlayer/NetworkMonitor.rb', line 56

def action_description
  @action_description
end

#idObject

Returns the value of attribute id

Returns:

  • (Object)

    the current value of id



56
57
58
# File 'lib/softlayer/NetworkMonitor.rb', line 56

def id
  @id
end

#levelObject

Returns the value of attribute level

Returns:

  • (Object)

    the current value of level



56
57
58
# File 'lib/softlayer/NetworkMonitor.rb', line 56

def level
  @level
end