Class: Hatolence::OffenseCategory

Inherits:
Object
  • Object
show all
Includes:
HttpClient
Defined in:
lib/hatolence/offense_category.rb

Class Method Summary collapse

Instance Method Summary collapse

Methods included from HttpClient

#build_request, #get_resource, #resource, #root_url

Class Method Details

.allObject



5
6
7
8
# File 'lib/hatolence/offense_category.rb', line 5

def self.all
  self.new.all

end

Instance Method Details

#allObject



10
11
12
13
# File 'lib/hatolence/offense_category.rb', line 10

def all
  response = get_resource
  JSON.parse(response)
end