module SmartHR::Client::CrewCustomFieldTemplateMethods
Public Instance Methods
Create a new crew custom field template
@param body [Hash]
@yield [response_body, response_header] if block was given, return response body and response header through block arguments @yieldparam response_body [Hashie::Mash] response body @yieldparam response_header [Hash<String, String>] response header (e.g. X-Rate-Limit-Limit, X-Rate-Limit-Reset, X-Rate-Limit-Remaining)
@return [Hashie::Mash]
# File lib/smarthr/client/crew_custom_field_template_methods.rb, line 80 def create_crew_custom_field_template(body:, &block) post("/crew_custom_field_templates", body, &block) end
Delete the crew custom field template
@param id [String]
@yield [response_body, response_header] if block was given, return response body and response header through block arguments @yieldparam response_body [Hashie::Mash] response body @yieldparam response_header [Hash<String, String>] response header (e.g. X-Rate-Limit-Limit, X-Rate-Limit-Reset, X-Rate-Limit-Remaining)
# File lib/smarthr/client/crew_custom_field_template_methods.rb, line 11 def destroy_crew_custom_field_template(id:, &block) delete("/crew_custom_field_templates/#{id}", &block) end
Get the crew custom field template
@param id [String] @param embed_group [Boolean] Whether or not to embed group
@yield [response_body, response_header] if block was given, return response body and response header through block arguments @yieldparam response_body [Hashie::Mash] response body @yieldparam response_header [Hash<String, String>] response header (e.g. X-Rate-Limit-Limit, X-Rate-Limit-Reset, X-Rate-Limit-Remaining)
@return [Hashie::Mash]
# File lib/smarthr/client/crew_custom_field_template_methods.rb, line 27 def find_crew_custom_field_template(id:, embed_group: false, &block) get("/crew_custom_field_templates/#{id}", embed: embed_group ? 'group' : nil, &block) end
Get the list of crew custom field templates
@param page [Integer] @param per_page [Integer] @param embed_group [Boolean] Whether or not to embed group
@yield [response_body, response_header] if block was given, return response body and response header through block arguments @yieldparam response_body [Array<Hashie::Mash>] response body @yieldparam response_header [Hash<String, String>] response header (e.g. X-Rate-Limit-Limit, X-Rate-Limit-Reset, X-Rate-Limit-Remaining)
@return [Array<Hashie::Mash>]
# File lib/smarthr/client/crew_custom_field_template_methods.rb, line 60 def get_crew_custom_field_templates(page: 1, per_page: 10, embed_group: false, &block) get("/crew_custom_field_templates", page: page, per_page: per_page, embed: embed_group ? 'group' : nil, &block ) end
Change the data of the specified template
@param id [String] @param body [Hash]
@yield [response_body, response_header] if block was given, return response body and response header through block arguments @yieldparam response_body [Hashie::Mash] response body @yieldparam response_header [Hash<String, String>] response header (e.g. X-Rate-Limit-Limit, X-Rate-Limit-Reset, X-Rate-Limit-Remaining)
@return [Hashie::Mash]
# File lib/smarthr/client/crew_custom_field_template_methods.rb, line 43 def update_crew_custom_field_template(id:, body:, &block) patch("/crew_custom_field_templates/#{id}", body, &block) end