Class: PatoClient::Setor

Inherits:
Object
  • Object
show all
Defined in:
lib/pato_client/setor_active_record.rb

Class Method Summary collapse

Class Method Details

.todosObject



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.authorization_token]).get.resource
  resource['setores']
end