Skip to content

rfernand/bumeran

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

65 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bumeran

This gem was made to connect to the Bumeran api found in https://developers.bumeran.com

Getting started

Bumeran works with Rails 3.2 onwards. You can add it to your Gemfile with:

gem 'bumeran'

...or can fetch the latest developer version with:

gem 'bumeran', :git => 'git@github.com:rfernand/bumeran.git', :branch => 'develop'

Configuration

After you finished the gem installation, you need to configure it with your Bumeran user information. You can do it filling a file like config/initializers/bumeran.rb with:

Bumeran.setup do |config|
  config.grant_type = "password"  # Default value
  config.client_id  = ""          # Bumeran client id
  config.username   = ""          # Bumeran client username
  config.email      = ""          # Bumeran client email
  config.password   = ""          # Bumeran client password
  config.environment "production" # You can choose between production or development
end

How to use

And more that don't need an ID. All return a json object, and raise an error (401, 404, 500) if there was one:

Create and publish a new publication

publication = Bumeran::Publication.new
pais_id = 1 # 1 = Argentina
plan_publication_id = 30 # 30 = simple
Bumeran.publish(publication.body.to_json, pais_id, plan_publication_id)

Get a publication data

Bumeran.get_publication(publication_id)
Bumeran.get_postulations_in_publication(publication_id)

Destroy a publication

Bumeran.destroy_publication(publication_id)

Discard a postulation

Bumeran.discard_postulation(publication_id)

More getters

They receive a corresponding object id and return a json object.

Bumeran.get_estudio(estudio_id)
Bumeran.get_conocimiento(conocimiento_id)
Bumeran.get_conocimiento_custom(conocimiento_custom_id)
Bumeran.get_experiencia_laboral(experiencia_laboral_id)
Bumeran.get_postulacion(postulacion_id)
Bumeran.get_curriculum(curriculum_id)
Bumeran.get_subareas_in(area_id)
Bumeran.get_zonas_in(pais_id)
Bumeran.get_localidades_id(pais_id)
Bumeran.get_plan_publicaciones_in(pais_id)

More queries and helpers

All return a json object. After the first query, the returned json is cached in the Bumeran module.

Bumeran.areas
Bumeran.subareas
Bumeran.frecuencias_pago
Bumeran.paises
Bumeran.denominaciones
Bumeran.direcciones
Bumeran.frecuencias_pago
Bumeran.idiomas
Bumeran.industrias
Bumeran.niveles_idiomas
Bumeran.tipos_trabajo
Bumeran.areas_estudio
Bumeran.estados_estudio
Bumeran.tipos_estudio

TODO

  • Add the missing methods of the postulaciones service

About

A gem to access the Bumeran api

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages