Sha256: 67de7a7cd5ffb1ec4998270f09d094091526609edff1118eb4b596e4e07cba84

Contents?: true

Size: 614 Bytes

Versions: 38

Compression:

Stored size: 614 Bytes

Contents

class Ey::Core::Client
  class Real
    def reset_password(_params)
      params = Cistern::Hash.stringify_keys(_params)

      request(
        :method => :put,
        :path   => "/password-resets/#{params["reset_token"]}",
        :body   => {
          :password_reset => {
            :password => params["password"]
          }
        },
      )
    end
  end # Real

  class Mock
    def reset_password(*)
      response(
        :body => {
          "password_reset" => {
            "accepted" => true
          },
        },
        :status  => 201,
      )
    end
  end # Mock
end # Ey::Core::Client

Version data entries

38 entries across 38 versions & 2 rubygems

Version Path
ey-core-3.6.4 lib/ey-core/requests/reset_password.rb
ey-core-3.6.3 lib/ey-core/requests/reset_password.rb
ey-core-3.6.1 lib/ey-core/requests/reset_password.rb
groove-ey-core-3.6.3 lib/ey-core/requests/reset_password.rb
groove-ey-core-3.6.2 lib/ey-core/requests/reset_password.rb
groove-ey-core-3.6.1 lib/ey-core/requests/reset_password.rb
ey-core-3.5.0 lib/ey-core/requests/reset_password.rb
ey-core-3.4.4 lib/ey-core/requests/reset_password.rb
ey-core-3.4.2 lib/ey-core/requests/reset_password.rb
ey-core-3.4.1 lib/ey-core/requests/reset_password.rb
ey-core-3.4.0 lib/ey-core/requests/reset_password.rb
ey-core-3.3.1 lib/ey-core/requests/reset_password.rb
ey-core-3.3.0 lib/ey-core/requests/reset_password.rb
ey-core-3.2.6 lib/ey-core/requests/reset_password.rb
ey-core-3.2.5 lib/ey-core/requests/reset_password.rb
ey-core-3.2.4 lib/ey-core/requests/reset_password.rb
ey-core-3.2.3 lib/ey-core/requests/reset_password.rb
ey-core-3.2.2 lib/ey-core/requests/reset_password.rb
ey-core-3.2.1 lib/ey-core/requests/reset_password.rb
ey-core-3.2.0 lib/ey-core/requests/reset_password.rb