Class: Nylas::Bookings
- Includes:
 - ApiOperations::Delete, ApiOperations::Get, ApiOperations::Patch, ApiOperations::Post, ApiOperations::Put
 
- Defined in:
 - lib/nylas/resources/bookings.rb
 
Overview
Nylas Messages API
Instance Method Summary collapse
- 
  
    
      #confirm_booking(booking_id:, request_body:, query_params:)  ⇒ Array(Hash, String) 
    
    
  
  
  
  
  
  
  
  
  
    
Confirm a booking.
 - 
  
    
      #create(request_body:, query_params:)  ⇒ Array(Hash, String) 
    
    
  
  
  
  
  
  
  
  
  
    
Create a booking.
 - 
  
    
      #destroy(booking_id:, query_params:)  ⇒ Array(TrueClass, String) 
    
    
  
  
  
  
  
  
  
  
  
    
Delete a booking.
 - 
  
    
      #find(booking_id:, query_params:)  ⇒ Array(Hash, String) 
    
    
  
  
  
  
  
  
  
  
  
    
Return a booking.
 - 
  
    
      #update(request_body:, booking_id:, query_params:)  ⇒ Array(Hash, String) 
    
    
  
  
  
  
  
  
  
  
  
    
Create a booking.
 
Methods inherited from Resource
Constructor Details
This class inherits a constructor from Nylas::Resource
Instance Method Details
#confirm_booking(booking_id:, request_body:, query_params:) ⇒ Array(Hash, String)
Confirm a booking.
      56 57 58 59 60 61 62  | 
    
      # File 'lib/nylas/resources/bookings.rb', line 56 def confirm_booking(booking_id:, request_body:, query_params:) put( path: "#{api_uri}/v3/scheduling/bookings/#{booking_id}", request_body: request_body, query_params: query_params ) end  | 
  
#create(request_body:, query_params:) ⇒ Array(Hash, String)
Create a booking.
      30 31 32 33 34 35 36  | 
    
      # File 'lib/nylas/resources/bookings.rb', line 30 def create(request_body:, query_params:) post( path: "#{api_uri}/v3/scheduling/bookings", request_body: request_body, query_params: query_params ) end  | 
  
#destroy(booking_id:, query_params:) ⇒ Array(TrueClass, String)
Delete a booking.
      68 69 70 71 72 73 74 75  | 
    
      # File 'lib/nylas/resources/bookings.rb', line 68 def destroy(booking_id:, query_params:) _, request_id = delete( path: "#{api_uri}/v3/scheduling/bookings/#{booking_id}", query_params: query_params ) [true, request_id] end  | 
  
#find(booking_id:, query_params:) ⇒ Array(Hash, String)
Return a booking.
      19 20 21 22 23 24  | 
    
      # File 'lib/nylas/resources/bookings.rb', line 19 def find(booking_id:, query_params:) get( path: "#{api_uri}/v3/scheduling/bookings/#{booking_id}", query_params: query_params ) end  | 
  
#update(request_body:, booking_id:, query_params:) ⇒ Array(Hash, String)
Create a booking.
      43 44 45 46 47 48 49  | 
    
      # File 'lib/nylas/resources/bookings.rb', line 43 def update(request_body:, booking_id:, query_params:) patch( path: "#{api_uri}/v3/scheduling/bookings/#{booking_id}", request_body: request_body, query_params: query_params ) end  |