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