Class: HaveAPI::Authentication::Token::ActionRequest
- Inherits:
-
Object
- Object
- HaveAPI::Authentication::Token::ActionRequest
- Defined in:
- lib/haveapi/authentication/token/action_request.rb
Instance Attribute Summary collapse
- #input ⇒ Hash readonly
- #request ⇒ Sinatra::Request readonly
- #token ⇒ String? readonly
- #user ⇒ Object? readonly
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ ActionRequest
constructor
A new instance of ActionRequest.
Constructor Details
#initialize(opts = {}) ⇒ ActionRequest
Returns a new instance of ActionRequest.
16 17 18 19 20 |
# File 'lib/haveapi/authentication/token/action_request.rb', line 16 def initialize(opts = {}) opts.each do |k, v| instance_variable_set(:"@#{k}", v) end end |
Instance Attribute Details
#input ⇒ Hash (readonly)
8 9 10 |
# File 'lib/haveapi/authentication/token/action_request.rb', line 8 def input @input end |
#request ⇒ Sinatra::Request (readonly)
5 6 7 |
# File 'lib/haveapi/authentication/token/action_request.rb', line 5 def request @request end |
#token ⇒ String? (readonly)
14 15 16 |
# File 'lib/haveapi/authentication/token/action_request.rb', line 14 def token @token end |
#user ⇒ Object? (readonly)
11 12 13 |
# File 'lib/haveapi/authentication/token/action_request.rb', line 11 def user @user end |