Class: Ecko::Plugins::Stripe::Authenticator

Inherits:
Object
  • Object
show all
Defined in:
lib/ecko/plugins/stripe/authenticator.rb

Overview

Base class with

Direct Known Subclasses

Checkout

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#paramsObject (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

#runObject

Raises:

  • (Ecko::Plugins::ExecutionError)


16
17
18
# File 'lib/ecko/plugins/stripe/authenticator.rb', line 16

def run
  raise Ecko::Plugins::ExecutionError
end

#state_secretObject



20
21
22
# File 'lib/ecko/plugins/stripe/authenticator.rb', line 20

def state_secret
  Ecko::Plugins::Stripe::Configurations.instance.state_secret
end