Class: KalibroClient::Entities::Configurations::Reading

Inherits:
Base
  • Object
show all
Defined in:
lib/kalibro_client/entities/configurations/reading.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Base

address

Methods inherited from Base

#kalibro_errors, module_name

Instance Attribute Details

#colorObject

Returns the value of attribute color.



22
23
24
# File 'lib/kalibro_client/entities/configurations/reading.rb', line 22

def color
  @color
end

#gradeObject

Returns the value of attribute grade.



22
23
24
# File 'lib/kalibro_client/entities/configurations/reading.rb', line 22

def grade
  @grade
end

#idObject

Returns the value of attribute id.



22
23
24
# File 'lib/kalibro_client/entities/configurations/reading.rb', line 22

def id
  @id
end

#labelObject

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_idObject

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