Class: GiactVerification::RequesterFactory
- Inherits:
-
Object
- Object
- GiactVerification::RequesterFactory
- Defined in:
- lib/giact_verification/requests/requester_factory.rb
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize ⇒ RequesterFactory
constructor
A new instance of RequesterFactory.
Constructor Details
#initialize ⇒ RequesterFactory
Returns a new instance of RequesterFactory.
7 8 9 |
# File 'lib/giact_verification/requests/requester_factory.rb', line 7 def initialize @endpoint_set_to = GiactVerification.giact_endpoint end |
Class Method Details
.call ⇒ Object
3 4 5 |
# File 'lib/giact_verification/requests/requester_factory.rb', line 3 def self.call new.call end |
Instance Method Details
#call ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/giact_verification/requests/requester_factory.rb', line 11 def call case endpoint_set_to when :production GiactVerification::ProductionRequester when :sandbox GiactVerification::SandboxRequester when :stubbed GiactVerification::StubbedRequester end end |