class CirroIO::Client::GigInvitation

Public Instance Methods

bulk_create_with(worker_filter, auto_accept: false) click to toggle source
# File lib/cirro_io/client/gig_invitation.rb, line 9
def bulk_create_with(worker_filter, auto_accept: false)
  payload = { data: { attributes: attributes.merge(worker_filter: worker_filter.attributes, auto_accept: auto_accept) } }

  response = self.class.custom_post("bulk/gigs/#{gig.id}/gig_invitations", format_to_dashed_keys(payload))

  self.class.parser.parse(self.class, response)
end