Class: DiscountNetwork::Password
- Defined in:
- lib/discountnetwork/password.rb
Instance Method Summary collapse
Methods inherited from Base
Instance Method Details
#create(token, attributes) ⇒ Object
15 16 17 18 19 |
# File 'lib/discountnetwork/password.rb', line 15 def create(token, attributes) DiscountNetwork.put_resource( ["account", "passwords", token].join("/"), account: attributes ) end |
#forgot(email) ⇒ Object
3 4 5 6 7 |
# File 'lib/discountnetwork/password.rb', line 3 def forgot(email) DiscountNetwork.post_resource( "account/resets", account: { email: email } ) end |
#validate(token) ⇒ Object
9 10 11 12 13 |
# File 'lib/discountnetwork/password.rb', line 9 def validate(token) DiscountNetwork.get_resource( ["account", "resets", token].join("/"), ) end |