Class: CF::Department
Instance Attribute Summary collapse
-
#name ⇒ Object
Department name.
Class Method Summary collapse
-
.all ⇒ Object
Returns all Department ===Usage example categories = CF::Department.all.
Instance Attribute Details
#name ⇒ Object
Department name
6 7 8 |
# File 'lib/cf/department.rb', line 6 def name @name end |
Class Method Details
.all ⇒ Object
11 12 13 |
# File 'lib/cf/department.rb', line 11 def self.all response = get("/departments.json") end |