Class: Alman::VacancyBookingsEndpoint

Inherits:
ApiEndpoint show all
Defined in:
lib/alman/endpoints/vacancy_bookings_endpoint.rb

Instance Attribute Summary

Attributes inherited from ApiEndpoint

#client, #parent

Instance Method Summary collapse

Methods inherited from ApiEndpoint

#initialize

Constructor Details

This class inherits a constructor from Alman::ApiEndpoint

Instance Method Details

#create(params = {}, headers = {}) ⇒ Object



4
5
6
7
8
# File 'lib/alman/endpoints/vacancy_bookings_endpoint.rb', line 4

def create(params={}, headers={})
  method = ApiMethod.new(:post, "/vacancies/:id/bookings", params, headers, @parent)
  json = @client.execute(method)
  Booking.new(json, method)
end