Class: KalibroGem::Entities::MetricConfigurationSnapshot
- Defined in:
- lib/kalibro_gem/entities/metric_configuration_snapshot.rb
Instance Attribute Summary collapse
-
#aggregation_form ⇒ Object
Returns the value of attribute aggregation_form.
-
#base_tool_name ⇒ Object
Returns the value of attribute base_tool_name.
-
#code ⇒ Object
Returns the value of attribute code.
-
#metric ⇒ Object
Returns the value of attribute metric.
-
#range ⇒ Object
Returns the value of attribute range.
-
#weight ⇒ Object
Returns the value of attribute weight.
Attributes inherited from Model
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_form ⇒ Object
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_name ⇒ Object
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 |
#code ⇒ Object
Returns the value of attribute code.
22 23 24 |
# File 'lib/kalibro_gem/entities/metric_configuration_snapshot.rb', line 22 def code @code end |
#metric ⇒ Object
Returns the value of attribute metric.
22 23 24 |
# File 'lib/kalibro_gem/entities/metric_configuration_snapshot.rb', line 22 def metric @metric end |
#range ⇒ Object
Returns the value of attribute range.
22 23 24 |
# File 'lib/kalibro_gem/entities/metric_configuration_snapshot.rb', line 22 def range @range end |
#weight ⇒ Object
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_snapshot ⇒ Object
45 46 47 |
# File 'lib/kalibro_gem/entities/metric_configuration_snapshot.rb', line 45 def range_snapshot range end |
#to_hash ⇒ Object
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 |