Class: AruxApp::API::Auth::AccessToken
- Inherits:
-
Object
- Object
- AruxApp::API::Auth::AccessToken
- Defined in:
- lib/arux_app/api/auth.rb
Instance Attribute Summary collapse
-
#auth ⇒ Object
Returns the value of attribute auth.
-
#scope ⇒ Object
Returns the value of attribute scope.
-
#token ⇒ Object
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ AccessToken
constructor
A new instance of AccessToken.
- #user_data(params = {}) ⇒ Object
Constructor Details
#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 |
Instance Attribute Details
#auth ⇒ Object
Returns the value of attribute auth.
8 9 10 |
# File 'lib/arux_app/api/auth.rb', line 8 def auth @auth end |
#scope ⇒ Object
Returns the value of attribute scope.
8 9 10 |
# File 'lib/arux_app/api/auth.rb', line 8 def scope @scope end |
#token ⇒ Object
Returns the value of attribute token.
8 9 10 |
# File 'lib/arux_app/api/auth.rb', line 8 def token @token end |