Class: KalibroGem::Entities::MetricConfigurationSnapshot

Inherits:
Model
  • Object
show all
Defined in:
lib/kalibro_gem/entities/metric_configuration_snapshot.rb

Instance Attribute Summary collapse

Attributes inherited from Model

#kalibro_errors

Instance Method Summary collapse

Methods inherited from Model

#==, create, create_array_from_hash, create_objects_array_from_hash, #destroy, #errors=, exists?, find, #initialize, request, #save, #save!, to_object, to_objects_array

Methods included from RequestMethods::ClassMethods

#exists_action, #find_action, #id_params

Methods included from HashConverters

#convert_to_hash, #date_with_milliseconds, #field_to_hash

Methods included from XMLConverters

#get_xml, #xml_instance_class_name

Methods included from RequestMethods

#destroy_action, #destroy_params, #save_action, #save_params

Constructor Details

This class inherits a constructor from KalibroGem::Entities::Model

Instance Attribute Details

#aggregation_formObject

Returns the value of attribute aggregation_form.



22
23
24
# File 'lib/kalibro_gem/entities/metric_configuration_snapshot.rb', line 22

def aggregation_form
  @aggregation_form
end

#base_tool_nameObject

Returns the value of attribute base_tool_name.



22
23
24
# File 'lib/kalibro_gem/entities/metric_configuration_snapshot.rb', line 22

def base_tool_name
  @base_tool_name
end

#codeObject

Returns the value of attribute code.



22
23
24
# File 'lib/kalibro_gem/entities/metric_configuration_snapshot.rb', line 22

def code
  @code
end

#metricObject

Returns the value of attribute metric.



22
23
24
# File 'lib/kalibro_gem/entities/metric_configuration_snapshot.rb', line 22

def metric
  @metric
end

#rangeObject

Returns the value of attribute range.



22
23
24
# File 'lib/kalibro_gem/entities/metric_configuration_snapshot.rb', line 22

def range
  @range
end

#weightObject

Returns the value of attribute weight.



22
23
24
# File 'lib/kalibro_gem/entities/metric_configuration_snapshot.rb', line 22

def weight
  @weight
end

Instance Method Details

#range_snapshotObject



45
46
47
# File 'lib/kalibro_gem/entities/metric_configuration_snapshot.rb', line 45

def range_snapshot
  range
end

#to_hashObject



49
50
51
52
53
54
# File 'lib/kalibro_gem/entities/metric_configuration_snapshot.rb', line 49

def to_hash
  hash = super
  hash[:attributes!][:range] = {'xmlns:xsi'=> 'http://www.w3.org/2001/XMLSchema-instance',
    'xsi:type' => 'kalibro:rangeSnapshotXml' }
  hash
end