Class: Services::CreateThirdPartyContext

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

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ CreateThirdPartyContext

Returns a new instance of CreateThirdPartyContext.



11
12
13
14
# File 'app/contexts/services/create_third_party_context.rb', line 11

def initialize(params)
  @params = params
  self.extend Services::ThirdPartyCreator
end

Instance Attribute Details

#paramsObject

Returns the value of attribute params.



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

def params
  @params
end

Class Method Details

.call(params) ⇒ Object



7
8
9
# File 'app/contexts/services/create_third_party_context.rb', line 7

def self.call(params)
  CreateThirdPartyContext.new(params).call
end

Instance Method Details

#callObject



16
17
18
# File 'app/contexts/services/create_third_party_context.rb', line 16

def call
  create(params)
end