Method: ActiveCic::Base.all
- Defined in:
- lib/cic/active_cic.rb
.all ⇒ Object
28 29 30 31 32 33 34 35 36 |
# File 'lib/cic/active_cic.rb', line 28 def self.all class_name = self.pluralize_child_class_name response = self.get("/#{class_name}.json") if response.success? response.parsed_response[class_name].map { |hash| self.new(hash) } else raise_exception(response.code, response.body) end end |