Class: Services::RequestSltcBaselineContext
- Inherits:
-
Object
- Object
- Services::RequestSltcBaselineContext
- Defined in:
- app/contexts/services/request_sltc_baseline_context.rb
Instance Attribute Summary collapse
-
#configured_account ⇒ Object
Returns the value of attribute configured_account.
-
#params ⇒ Object
Returns the value of attribute params.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(configured_account, params) ⇒ RequestSltcBaselineContext
constructor
A new instance of RequestSltcBaselineContext.
Constructor Details
#initialize(configured_account, params) ⇒ RequestSltcBaselineContext
Returns a new instance of RequestSltcBaselineContext.
11 12 13 14 15 |
# File 'app/contexts/services/request_sltc_baseline_context.rb', line 11 def initialize(configured_account, params) @configured_account = configured_account @params = params @configured_account.extend Services::SltcBaselineRequestor end |
Instance Attribute Details
#configured_account ⇒ Object
Returns the value of attribute configured_account.
5 6 7 |
# File 'app/contexts/services/request_sltc_baseline_context.rb', line 5 def configured_account @configured_account end |
#params ⇒ Object
Returns the value of attribute params.
5 6 7 |
# File 'app/contexts/services/request_sltc_baseline_context.rb', line 5 def params @params end |
Class Method Details
.call(configured_account, params) ⇒ Object
7 8 9 |
# File 'app/contexts/services/request_sltc_baseline_context.rb', line 7 def self.call(configured_account, params) RequestSltcBaselineContext.new(configured_account, params).call end |
Instance Method Details
#call ⇒ Object
17 18 19 |
# File 'app/contexts/services/request_sltc_baseline_context.rb', line 17 def call configured_account.request_baseline(params) end |