Class: KalibroGatekeeperClient::Entities::Project
- Defined in:
- lib/kalibro_gatekeeper_client/entities/project.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 inherited from Model
Class Method Summary collapse
Methods inherited from Model
#==, create, create_array_from_hash, create_objects_array_from_hash, #destroy, 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, #destroy_params, #save_action, #save_params
Constructor Details
This class inherits a constructor from KalibroGatekeeperClient::Entities::Model
Instance Attribute Details
#description ⇒ Object
Returns the value of attribute description.
23 24 25 |
# File 'lib/kalibro_gatekeeper_client/entities/project.rb', line 23 def description @description end |
#id ⇒ Object
Returns the value of attribute id.
23 24 25 |
# File 'lib/kalibro_gatekeeper_client/entities/project.rb', line 23 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
23 24 25 |
# File 'lib/kalibro_gatekeeper_client/entities/project.rb', line 23 def name @name end |
Class Method Details
.all ⇒ Object
29 30 31 32 |
# File 'lib/kalibro_gatekeeper_client/entities/project.rb', line 29 def self.all # FIXME: for some reason, the JSON is not getting automatically parsed create_objects_array_from_hash(JSON.parse(request('all', {}, :get))["projects"]) end |