Method: AruxApp::API::Auth::AccessToken#initialize
- Defined in:
- lib/arux_app/api/auth.rb
#initialize(options = {}) ⇒ AccessToken
Returns a new instance of AccessToken.
10 11 12 13 14 15 16 17 18 |
# File 'lib/arux_app/api/auth.rb', line 10 def initialize( = {}) self.token = [:token] self.auth = [:auth] self.scope = [:scope] raise API::InitializerError.new(:token, "can't be blank") if self.token.to_s.empty? raise API::InitializerError.new(:auth, "can't be blank") if self.auth.nil? raise API::InitializerError.new(:auth, "must be of class type AruxApp::API::Auth") if !self.auth.is_a?(AruxApp::API::Auth) end |