Class: ActionKitRest::Actions::EventSignupAction

Inherits:
ActionKitRest::Action show all
Defined in:
lib/action_kit_rest/actions/event_signup_action.rb

Instance Method Summary collapse

Methods inherited from Base

#create, #list, #normalized_base_path, #update

Instance Method Details

#base_pathObject



6
7
8
# File 'lib/action_kit_rest/actions/event_signup_action.rb', line 6

def base_path
  'eventsignupaction'
end

#get(id) ⇒ Object



10
11
12
13
14
15
16
17
18
19
# File 'lib/action_kit_rest/actions/event_signup_action.rb', line 10

def get(id)
   = super

  # Aggregate fields parsed from referrenced entities' URI
  .obj['event_signup_id'] =
    ..match(%r{/rest/v1/eventsignup/(\d*)/})[1]
  .obj['user_id'] = .user.match(%r{/rest/v1/user/(\d*)/})[1]

  
end