Sha256: 15413ae28fbb3557ac8e1f82366bcfe2514c14515b1b8f093e531aa776dea1cf

Contents?: true

Size: 561 Bytes

Versions: 12

Compression:

Stored size: 561 Bytes

Contents

module ActionKitRest
  module Actions
    class EventSignupAction < Action
      def base_path
        'eventsignupaction'
      end

      def get(id)
        ak_event_signup_action = super

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

        ak_event_signup_action
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
action_kit_rest-0.4.4 lib/action_kit_rest/actions/event_signup_action.rb
action_kit_rest-0.4.3 lib/action_kit_rest/actions/event_signup_action.rb
action_kit_rest-0.4.2 lib/action_kit_rest/actions/event_signup_action.rb
action_kit_rest-0.4.1 lib/action_kit_rest/actions/event_signup_action.rb
action_kit_rest-0.4.0 lib/action_kit_rest/actions/event_signup_action.rb
action_kit_rest-0.3.8 lib/action_kit_rest/actions/event_signup_action.rb
action_kit_rest-0.3.7 lib/action_kit_rest/actions/event_signup_action.rb
action_kit_rest-0.3.6 lib/action_kit_rest/actions/event_signup_action.rb
action_kit_rest-0.3.5 lib/action_kit_rest/actions/event_signup_action.rb
action_kit_rest-0.3.4 lib/action_kit_rest/actions/event_signup_action.rb
action_kit_rest-0.3.3 lib/action_kit_rest/actions/event_signup_action.rb
action_kit_rest-0.3.2 lib/action_kit_rest/actions/event_signup_action.rb