Class: Hawkular::Inventory::OperationDefinition

Inherits:
BaseEntity
  • Object
show all
Defined in:
lib/hawkular/inventory/entities.rb

Instance Attribute Summary collapse

Attributes inherited from BaseEntity

#env, #feed, #id, #name, #path, #properties

Instance Method Summary collapse

Methods inherited from BaseEntity

#==, #to_h

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

#paramsObject (readonly)

Returns the value of attribute params



122
123
124
# File 'lib/hawkular/inventory/entities.rb', line 122

def params
  @params
end