Sha256: 49b06abfb3252fbbd6d576696e972dc846f59a2d2c9133e856f5267e28d37303
Contents?: true
Size: 1.03 KB
Versions: 4
Compression:
Stored size: 1.03 KB
Contents
require 'dato/account/repo/base' module Dato module Account module Repo class Account < Base def create(resource_attributes) body = JsonApiSerializer.new( type: :account, attributes: %i(email password), required_attributes: %i(email password), ).serialize(resource_attributes) post_request "/account", body end def update(resource_attributes) body = JsonApiSerializer.new( type: :account, attributes: %i(email password), ).serialize(resource_attributes) put_request "/account", body end def find() get_request "/account" end def reset_password(resource_attributes) body = JsonApiSerializer.new( type: :account, attributes: %i(email), required_attributes: %i(email), ).serialize(resource_attributes) post_request "/account/reset_password", body end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
dato-0.1.5 | lib/dato/account/repo/account.rb |
dato-0.1.4 | lib/dato/account/repo/account.rb |
dato-0.1.3 | lib/dato/account/repo/account.rb |
dato-0.1.2 | lib/dato/account/repo/account.rb |