Class: Services::RequestSltcBaselineContext

Inherits:
Object
  • Object
show all
Defined in:
app/contexts/services/request_sltc_baseline_context.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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(, params)
  @configured_account = 
  @params = params
  @configured_account.extend Services::SltcBaselineRequestor
end

Instance Attribute Details

#configured_accountObject

Returns the value of attribute configured_account.



5
6
7
# File 'app/contexts/services/request_sltc_baseline_context.rb', line 5

def 
  @configured_account
end

#paramsObject

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(, params)
  RequestSltcBaselineContext.new(, params).call
end

Instance Method Details

#callObject



17
18
19
# File 'app/contexts/services/request_sltc_baseline_context.rb', line 17

def call
  .request_baseline(params)
end