Class: TokenAction::Token
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- TokenAction::Token
- Includes:
- Mongoid::Document, Mongoid::Timestamps, Model
- Defined in:
- lib/token_action/orm/mongoid.rb,
lib/token_action/orm/active_record.rb
Overview
A token to authenticate an action.
Instance Method Summary collapse
-
#args ⇒ Array
Any additional arguments for the action.
-
#failure_url ⇒ String
The URL to redirect to after failing to perform the action.
-
#kind ⇒ String
The class on which to perform the action.
-
#success_url ⇒ String
The URL to redirect to after performing the action successfully.
-
#token ⇒ String
A shared secret.
Instance Method Details
#args ⇒ Array
Any additional arguments for the action.
22 |
# File 'lib/token_action/orm/mongoid.rb', line 22 field :args, :type => Array |
#failure_url ⇒ String
The URL to redirect to after failing to perform the action.
30 |
# File 'lib/token_action/orm/mongoid.rb', line 30 field :failure_url, :type => String |
#kind ⇒ String
Note:
‘class` clashes with `Object#class` and Mongoid reserves `klass`.
The class on which to perform the action.
18 |
# File 'lib/token_action/orm/mongoid.rb', line 18 field :kind, :type => String |
#success_url ⇒ String
The URL to redirect to after performing the action successfully.
26 |
# File 'lib/token_action/orm/mongoid.rb', line 26 field :success_url, :type => String |
#token ⇒ String
A shared secret.
13 |
# File 'lib/token_action/orm/mongoid.rb', line 13 field :token, :type => String |