class LastbillClient::CreateJobRequest

@author ciappa_m@modulotech.fr Create a job from the current user to the target company. @see LastbillClient::Request @see LastbillClient::Utils::FinalRequest @see LastbillClient::Utils::AuthentifiedRequest @since 0.1.0

Attributes

target_id[R]

@return [String] The id of the target company.

workflow[R]

@return [Hash] The workflow used to create the job.

Public Class Methods

new(target_id, workflow) click to toggle source

@param target_id [String] The id of the target company. @param workflow [Hash] The workflow to use to create the job.

Calls superclass method
# File lib/lastbill_client/request/requests/create_job_request.rb, line 21
def initialize(target_id, workflow)
  super(:post, "api/jobs")

  @target_id = target_id
  @workflow  = workflow
  @body      = {
    target_id: @target_id,
    workflow: @workflow
  }
end