Class: KalibroClient::Entities::Configurations::KalibroConfiguration
- Defined in:
- lib/kalibro_client/entities/configurations/kalibro_configuration.rb
Instance Attribute Summary collapse
-
#description ⇒ Object
Returns the value of attribute description.
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Attributes included from DateAttributes
Attributes inherited from Base
Class Method Summary collapse
Instance Method Summary collapse
Methods inherited from Base
Methods inherited from Base
#==, address, client, create, create_array_from_hash, create_objects_array_from_hash, #destroy, endpoint, entity_name, exists?, find, #initialize, is_valid?, request, #save, #save!, #to_hash, to_object, to_objects_array, #update
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, #destroy_prefix, #save_action, #save_params, #save_prefix, #update_params, #update_prefix
Constructor Details
This class inherits a constructor from KalibroClient::Entities::Base
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
21 22 23 |
# File 'lib/kalibro_client/entities/configurations/kalibro_configuration.rb', line 21 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
21 22 23 |
# File 'lib/kalibro_client/entities/configurations/kalibro_configuration.rb', line 21 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
21 22 23 |
# File 'lib/kalibro_client/entities/configurations/kalibro_configuration.rb', line 21 def name @name end |
Class Method Details
.all ⇒ Object
27 28 29 |
# File 'lib/kalibro_client/entities/configurations/kalibro_configuration.rb', line 27 def self.all create_objects_array_from_hash(request('', {}, :get)) end |
Instance Method Details
#metric_configurations ⇒ Object
31 32 33 |
# File 'lib/kalibro_client/entities/configurations/kalibro_configuration.rb', line 31 def metric_configurations KalibroClient::Entities::Configurations::MetricConfiguration.create_objects_array_from_hash(self.class.request(':id/metric_configurations', {id: id}, :get)) end |