module SmartHR::Client::CrewCustomFieldTemplateGroupMethods

Public Instance Methods

create_crew_custom_field_template_group(body:, &block) click to toggle source

Create a new crew custom field template group

@see developer.smarthr.jp/api/index.html#!/%E5%BE%93%E6%A5%AD%E5%93%A1%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E9%A0%85%E7%9B%AE%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97/postV1CrewCustomFieldTemplateGroups

@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_group_methods.rb, line 80
def create_crew_custom_field_template_group(body:, &block)
  post("/crew_custom_field_template_groups", body, &block)
end
destroy_crew_custom_field_template_group(id:, &block) click to toggle source

Delete the crew custom field template group

@see developer.smarthr.jp/api/index.html#!/%E5%BE%93%E6%A5%AD%E5%93%A1%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E9%A0%85%E7%9B%AE%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97/deleteV1CrewCustomFieldTemplateGroupsId

@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_group_methods.rb, line 11
def destroy_crew_custom_field_template_group(id:, &block)
  delete("/crew_custom_field_template_groups/#{id}", &block)
end
find_crew_custom_field_template_group(id:, embed_templates: false, &block) click to toggle source

Get the crew custom field template group

@see developer.smarthr.jp/api/index.html#!/%E5%BE%93%E6%A5%AD%E5%93%A1%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E9%A0%85%E7%9B%AE%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97/getV1CrewCustomFieldTemplateGroupsId

@param id [String] @param embed_templates [Boolean] Whether or not to embed templates

@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_group_methods.rb, line 27
def find_crew_custom_field_template_group(id:, embed_templates: false, &block)
  get("/crew_custom_field_template_groups/#{id}", embed: embed_templates ? 'templates' : nil, &block)
end
get_crew_custom_field_template_groups(page: 1, per_page: 10, embed_templates: false, &block) click to toggle source

Get the list of crew custom field template groups

@see developer.smarthr.jp/api/index.html#!/%E5%BE%93%E6%A5%AD%E5%93%A1%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E9%A0%85%E7%9B%AE%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97/getV1CrewCustomFieldTemplateGroups

@param page [Integer] @param per_page [Integer] @param embed_templates [Boolean] Whether or not to embed templates

@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_group_methods.rb, line 60
def get_crew_custom_field_template_groups(page: 1, per_page: 10, embed_templates: false, &block)
  get("/crew_custom_field_template_groups",
    page: page,
    per_page: per_page,
    embed: embed_templates ? 'templates' : nil,
    &block
  )
end
update_crew_custom_field_template_group(id:, body:, &block) click to toggle source

Change the data of the specified group

@see developer.smarthr.jp/api/index.html#!/%E5%BE%93%E6%A5%AD%E5%93%A1%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E9%A0%85%E7%9B%AE%E3%82%B0%E3%83%AB%E3%83%BC%E3%83%97/getV1CrewCustomFieldTemplateGroupsId

@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_group_methods.rb, line 43
def update_crew_custom_field_template_group(id:, body:, &block)
  patch("/crew_custom_field_template_groups/#{id}", body, &block)
end