Sha256: 4c80fd439f88dcb03ca42a25481f9d0f6bffe8685f1ea2e17bb190fb76f8fbbd

Contents?: true

Size: 478 Bytes

Versions: 15

Compression:

Stored size: 478 Bytes

Contents

# frozen_string_literal: true
module FinApps
  module REST
    class PasswordResets < FinAppsCore::REST::Resources # :nodoc:
      def create(id)
        not_blank(id, :id)

        path = "tenant/#{ERB::Util.url_encode(id)}/password"
        super nil, path
      end

      def update(id, params)
        not_blank(id, :id)
        not_blank(params, :params)

        path = "tenant/#{ERB::Util.url_encode(id)}/password"
        super params, path
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
finapps-2.2.22 lib/finapps/rest/password_resets.rb
finapps-2.2.21 lib/finapps/rest/password_resets.rb
finapps-2.2.20 lib/finapps/rest/password_resets.rb
finapps-2.2.19 lib/finapps/rest/password_resets.rb
finapps-2.2.18 lib/finapps/rest/password_resets.rb
finapps-2.2.17 lib/finapps/rest/password_resets.rb
finapps-2.2.16 lib/finapps/rest/password_resets.rb
finapps-2.2.15 lib/finapps/rest/password_resets.rb
finapps-2.2.14 lib/finapps/rest/password_resets.rb
finapps-2.2.13 lib/finapps/rest/password_resets.rb
finapps-2.2.12 lib/finapps/rest/password_resets.rb
finapps-2.2.11 lib/finapps/rest/password_resets.rb
finapps-2.2.10 lib/finapps/rest/password_resets.rb
finapps-2.2.9 lib/finapps/rest/password_resets.rb
finapps-2.2.8 lib/finapps/rest/password_resets.rb