Module: SmartHR::Client::MailFormatMethods
- Included in:
- SmartHR::Client
- Defined in:
- lib/smarthr/client/mail_format_methods.rb
Instance Method Summary collapse
-
#find_mail_format(id:, embed_crew_input_forms: false) {|response_body, response_header| ... } ⇒ Hashie::Mash
Get the mail format.
-
#get_mail_formats(page: 1, per_page: 10, embed_crew_input_forms: false) {|response_body, response_header| ... } ⇒ Array<Hashie::Mash>
Get the list of mail formats.
Instance Method Details
#find_mail_format(id:, embed_crew_input_forms: false) {|response_body, response_header| ... } ⇒ Hashie::Mash
Get the mail format
14 15 16 |
# File 'lib/smarthr/client/mail_format_methods.rb', line 14 def find_mail_format(id:, embed_crew_input_forms: false, &block) get("/mail_formats/#{id}", embed: ? 'crew_input_forms' : nil, &block) end |
#get_mail_formats(page: 1, per_page: 10, embed_crew_input_forms: false) {|response_body, response_header| ... } ⇒ Array<Hashie::Mash>
Get the list of mail formats
31 32 33 34 35 36 37 38 |
# File 'lib/smarthr/client/mail_format_methods.rb', line 31 def get_mail_formats(page: 1, per_page: 10, embed_crew_input_forms: false, &block) get("/mail_formats", page: page, per_page: per_page, embed: ? 'crew_input_forms' : nil, &block ) end |