Class: Ecko::Plugins::Stripe::Authenticator
- Inherits:
-
Object
- Object
- Ecko::Plugins::Stripe::Authenticator
- Defined in:
- lib/ecko/plugins/stripe/authenticator.rb
Overview
Base class with
Direct Known Subclasses
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Class Method Summary collapse
-
.execute(params) ⇒ Object
Hits the run instance method.
Instance Method Summary collapse
-
#initialize(params) ⇒ Authenticator
constructor
A new instance of Authenticator.
- #run ⇒ Object
- #state_secret ⇒ Object
Constructor Details
#initialize(params) ⇒ Authenticator
Returns a new instance of Authenticator.
11 12 13 14 |
# File 'lib/ecko/plugins/stripe/authenticator.rb', line 11 def initialize(params) @params = params ::Ecko::Plugins.stripe.authenticate end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
9 10 11 |
# File 'lib/ecko/plugins/stripe/authenticator.rb', line 9 def params @params end |
Class Method Details
.execute(params) ⇒ Object
Hits the run instance method.
26 27 28 |
# File 'lib/ecko/plugins/stripe/authenticator.rb', line 26 def execute(params) new(params).run end |
Instance Method Details
#run ⇒ Object
16 17 18 |
# File 'lib/ecko/plugins/stripe/authenticator.rb', line 16 def run raise Ecko::Plugins::ExecutionError end |
#state_secret ⇒ Object
20 21 22 |
# File 'lib/ecko/plugins/stripe/authenticator.rb', line 20 def state_secret Ecko::Plugins::Stripe::Configurations.instance.state_secret end |