Class: Hawkular::Inventory::OperationDefinition
- Inherits:
-
BaseEntity
- Object
- BaseEntity
- Hawkular::Inventory::OperationDefinition
- Defined in:
- lib/hawkular/inventory/entities.rb
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Attributes inherited from BaseEntity
#env, #feed, #id, #name, #path, #properties
Instance Method Summary collapse
-
#initialize(op_hash) ⇒ OperationDefinition
constructor
A new instance of OperationDefinition.
Methods inherited from BaseEntity
Constructor Details
#initialize(op_hash) ⇒ OperationDefinition
Returns a new instance of OperationDefinition
124 125 126 127 |
# File 'lib/hawkular/inventory/entities.rb', line 124 def initialize(op_hash) super(op_hash) @params = (op_hash.key? 'parameters') ? op_hash['parameters'] : {} end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params
122 123 124 |
# File 'lib/hawkular/inventory/entities.rb', line 122 def params @params end |