Class: CF::Department

Inherits:
Object
  • Object
show all
Includes:
Client
Defined in:
lib/cf/department.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#nameObject

Department name



6
7
8
# File 'lib/cf/department.rb', line 6

def name
  @name
end

Class Method Details

.allObject

Returns all Department

Usage example

categories = CF::Department.all


11
12
13
# File 'lib/cf/department.rb', line 11

def self.all
  response = get("/departments.json")
end