Class: Badges::CreateService

Inherits:
BaseService show all
Defined in:
app/services/badges/create_service.rb

Instance Method Summary collapse

Instance Method Details

#execute(source) ⇒ Object

returns the created badge


6
7
8
9
10
# File 'app/services/badges/create_service.rb', line 6

def execute(source)
  badge = Badges::BuildService.new(params).execute(source)

  badge.tap { |b| b.save }
end