class Commands::Activities::Activity::Create
Public Instance Methods
init()
click to toggle source
# File lib/restpack_activity_service/commands/activity/create.rb, line 18 def init if latitude.present? || longitude.present? if latitude.present? != longitude.present? service_error "Both Latitude and Longitude are required" end end #TEMP: GJ: some example service errors if title == "error" service_error "This is a service error" end if title == "custom" field_error :title, "Title should not be 'custom'" end end