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