Class: HaveAPI::Authentication::Token::ActionRequest

Inherits:
Object
  • Object
show all
Defined in:
lib/haveapi/authentication/token/action_request.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#inputHash (readonly)

Returns:

  • (Hash)


8
9
10
# File 'lib/haveapi/authentication/token/action_request.rb', line 8

def input
  @input
end

#requestSinatra::Request (readonly)

Returns:

  • (Sinatra::Request)


5
6
7
# File 'lib/haveapi/authentication/token/action_request.rb', line 5

def request
  @request
end

#tokenString? (readonly)

Returns:

  • (String, nil)


14
15
16
# File 'lib/haveapi/authentication/token/action_request.rb', line 14

def token
  @token
end

#userObject? (readonly)

Returns:

  • (Object, nil)


11
12
13
# File 'lib/haveapi/authentication/token/action_request.rb', line 11

def user
  @user
end