Class: KalibroGem::Entities::ReadingGroup

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

Instance Attribute Summary collapse

Attributes inherited from Model

#kalibro_errors

Class 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_hash, 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, #save_action, #save_params

Constructor Details

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

Instance Attribute Details

#descriptionObject

Returns the value of attribute description.



21
22
23
# File 'lib/kalibro_gem/entities/reading_group.rb', line 21

def description
  @description
end

#idObject

Returns the value of attribute id.



21
22
23
# File 'lib/kalibro_gem/entities/reading_group.rb', line 21

def id
  @id
end

#nameObject

Returns the value of attribute name.



21
22
23
# File 'lib/kalibro_gem/entities/reading_group.rb', line 21

def name
  @name
end

Class Method Details

.allObject



27
28
29
# File 'lib/kalibro_gem/entities/reading_group.rb', line 27

def self.all
  create_objects_array_from_hash request(:all_reading_groups)[:reading_group]
end