Sha256: e20e6188e499f1f11786375fb077e3699c0e2a655c81ff53103e7d3ecfe156a1
Contents?: true
Size: 597 Bytes
Versions: 4
Compression:
Stored size: 597 Bytes
Contents
# frozen_string_literal: true module FinApps module REST class Sessions < FinApps::REST::Resources # :nodoc: require 'erb' using ObjectExtensions using StringExtensions # @param [Hash] params # @return [Array<String>] def create(params) raise InvalidArgumentsError.new 'Invalid argument: params.' unless validates params super params, 'login' end private def validates(params) params.key?(:email) && params[:email].present? && params.key?(:password) && params[:password].present? end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
finapps-2.0.21 | lib/finapps/rest/sessions.rb |
finapps-2.0.20 | lib/finapps/rest/sessions.rb |
finapps-2.0.19 | lib/finapps/rest/sessions.rb |
finapps-2.0.17 | lib/finapps/rest/sessions.rb |