Sha256: e870b0b1cb4210805a3c972722d8542f410ebd630872e7e02e3ce25229c0a394
Contents?: true
Size: 906 Bytes
Versions: 5
Compression:
Stored size: 906 Bytes
Contents
require 'active_support/core_ext/object/json' require_relative 'request' module SecondStep::APIRequests class ApplicationUserRequest < Request token_type :client_credentials ApplicationUserPath = path.application_users(:application_user_id).save! ApplicationUserPath.break_on_empty = true def path(id) ApplicationUserPath[id].new end def create(application_user_data) token.post path, body: application_user_data.to_json end def index token.get path end def show(application_user_id) token.get path(application_user_id) end def delete(application_user_id) token.delete path(application_user_id) end def link_status(application_user_id) token.get path(application_user_id).request_link end def request_link(application_user_id) token.post path(application_user_id).request_link end end end
Version data entries
5 entries across 4 versions & 1 rubygems