Module: SmartHR::Client::CrewInputFormMethods
- Included in:
- SmartHR::Client
- Defined in:
- lib/smarthr/client/crew_input_form_method.rb
Instance Method Summary collapse
-
#find_crew_input_form(id:, embed_mail_format: false) {|response_body, response_header| ... } ⇒ Hashie::Mash
Get the crew input form.
-
#get_crew_input_forms(page: 1, per_page: 10, embed_mail_format: false) {|response_body, response_header| ... } ⇒ Array<Hashie::Mash>
Get the list of crew input forms.
Instance Method Details
#find_crew_input_form(id:, embed_mail_format: false) {|response_body, response_header| ... } ⇒ Hashie::Mash
Get the crew input form
14 15 16 |
# File 'lib/smarthr/client/crew_input_form_method.rb', line 14 def find_crew_input_form(id:, embed_mail_format: false, &block) get("/crew_input_forms/#{id}", embed: ? 'mail_format' : nil, &block) end |
#get_crew_input_forms(page: 1, per_page: 10, embed_mail_format: false) {|response_body, response_header| ... } ⇒ Array<Hashie::Mash>
Get the list of crew input forms
31 32 33 34 35 36 37 38 |
# File 'lib/smarthr/client/crew_input_form_method.rb', line 31 def get_crew_input_forms(page: 1, per_page: 10, embed_mail_format: false, &block) get("/crew_input_forms", page: page, per_page: per_page, embed: ? 'mail_format' : nil, &block ) end |