Module: Services::ThirdPartyCreator

Defined in:
app/roles/services/third_party_creator.rb

Instance Method Summary collapse

Instance Method Details

#create(params) ⇒ Object



5
6
7
8
9
# File 'app/roles/services/third_party_creator.rb', line 5

def create(params)
  ThirdParty.new(params).tap do | tp |
    tp.save if tp.valid?
  end
end