Class: Boechat::Core::Service::Verifier
- Inherits:
-
Object
- Object
- Boechat::Core::Service::Verifier
- Defined in:
- lib/boechat/core/service/verifier.rb
Overview
Class responsible for call the endpoints and return all the results
Instance Attribute Summary collapse
-
#config ⇒ Object
readonly
Returns the value of attribute config.
-
#request_list ⇒ Object
readonly
Returns the value of attribute request_list.
Instance Method Summary collapse
- #call(service = nil) ⇒ Object
-
#initialize ⇒ Verifier
constructor
A new instance of Verifier.
Constructor Details
#initialize ⇒ Verifier
Returns a new instance of Verifier.
16 17 18 19 |
# File 'lib/boechat/core/service/verifier.rb', line 16 def initialize @config = ConfigReader.new.call.config build_request_list end |
Instance Attribute Details
#config ⇒ Object (readonly)
Returns the value of attribute config.
14 15 16 |
# File 'lib/boechat/core/service/verifier.rb', line 14 def config @config end |
#request_list ⇒ Object (readonly)
Returns the value of attribute request_list.
14 15 16 |
# File 'lib/boechat/core/service/verifier.rb', line 14 def request_list @request_list end |
Instance Method Details
#call(service = nil) ⇒ Object
21 22 23 |
# File 'lib/boechat/core/service/verifier.rb', line 21 def call(service = nil) @request_list.call(service) end |