class GfreshPoint::RequestObjects::EarnPointRequest
Attributes
app_id[RW]
comment[RW]
event_name[RW]
origin_id[RW]
user_id[RW]
Public Class Methods
new(app_id, user_id, event_name, origin_id, comment)
click to toggle source
# File lib/gfresh_point/request_objects/earn_point_request.rb, line 6 def initialize(app_id, user_id, event_name, origin_id, comment) @app_id = app_id @user_id = user_id @event_name = event_name @origin_id = origin_id @comment = comment if app_id.blank? add_error('app_id', "App id can not be blank") end if user_id.blank? add_error('user_id', "User id can not be blank") end if event_name.blank? add_error('event_name', "event_name can not be blank") end end