Class: KalibroClient::Entities::Configurations::Reading
- Defined in:
- lib/kalibro_client/entities/configurations/reading.rb
Instance Attribute Summary collapse
-
#color ⇒ Object
Returns the value of attribute color.
-
#grade ⇒ Object
Returns the value of attribute grade.
-
#id ⇒ Object
Returns the value of attribute id.
-
#label ⇒ Object
Returns the value of attribute label.
-
#reading_group_id ⇒ Object
Returns the value of attribute reading_group_id.
Attributes included from DateAttributes
Attributes inherited from Base
Class Method Summary collapse
Methods inherited from Base
Methods inherited from Base
#==, create, create_array_from_hash, create_objects_array_from_hash, #destroy, exists?, find, #initialize, 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, #save_action, #update_params
Constructor Details
This class inherits a constructor from KalibroClient::Entities::Base
Instance Attribute Details
#color ⇒ Object
Returns the value of attribute color.
22 23 24 |
# File 'lib/kalibro_client/entities/configurations/reading.rb', line 22 def color @color end |
#grade ⇒ Object
Returns the value of attribute grade.
22 23 24 |
# File 'lib/kalibro_client/entities/configurations/reading.rb', line 22 def grade @grade end |
#id ⇒ Object
Returns the value of attribute id.
22 23 24 |
# File 'lib/kalibro_client/entities/configurations/reading.rb', line 22 def id @id end |
#label ⇒ Object
Returns the value of attribute label.
22 23 24 |
# File 'lib/kalibro_client/entities/configurations/reading.rb', line 22 def label @label end |
#reading_group_id ⇒ Object
Returns the value of attribute reading_group_id.
22 23 24 |
# File 'lib/kalibro_client/entities/configurations/reading.rb', line 22 def reading_group_id @reading_group_id end |
Class Method Details
.readings_of(reading_group_id) ⇒ Object
32 33 34 |
# File 'lib/kalibro_client/entities/configurations/reading.rb', line 32 def self.readings_of(reading_group_id) create_objects_array_from_hash(request('', {}, :get, "reading_groups/#{reading_group_id}")) end |