Class: PatoClient::Setor
- Inherits:
-
Object
- Object
- PatoClient::Setor
- Defined in:
- lib/pato_client/setor_active_record.rb
Class Method Summary collapse
Class Method Details
.todos ⇒ Object
16 17 18 19 20 |
# File 'lib/pato_client/setor_active_record.rb', line 16 def self.todos resource = Restfulie.at("%s?auth_token=%s" % [PatoClient::Config.setor_uri, PatoClient::Config.]).get.resource resource['setores'] end |