Method: GfreshPoint::Client#earn_point

Defined in:
lib/gfresh_point.rb

#earn_point(user_id, event_name, origin_id = nil, comment = {}) ⇒ Object



59
60
61
62
63
64
# File 'lib/gfresh_point.rb', line 59

def earn_point(user_id, event_name, origin_id = nil, comment = {})
  request = GfreshPoint::RequestObjects::EarnPointRequest.new(app_id, user_id, event_name, origin_id, comment)
  use_case = GfreshPoint::Usecase::EarnPointUsecase.new(repo)
  response = use_case.call(request)
  response
end