Class: YourMembership::Sa::Events
- Defined in:
- lib/your_membership/sa_events.rb
Overview
YourMembership System Administrator Events Namespace
Class Method Summary collapse
-
.all_getIDs(options = {}) ⇒ Array
Returns a list of Events for the community optionally filtered by date or event name.
-
.event_registration_get(event_id, options = {}) ⇒ Hash
Returns Event Registration details for the provided Event and Event Registration ID.
-
.event_registrations_getIDs(event_id) ⇒ Array
Returns a list of Registration IDs for the specified Event ID.
Methods inherited from Base
build_XML_request, new_call_id, post, response_to_array, response_to_array_of_hashes, response_valid?, response_ym_error?
Class Method Details
.all_getIDs(options = {}) ⇒ Array
Returns a list of Events for the community optionally filtered by date or event name.
14 15 16 17 18 19 20 21 22 23 |
# File 'lib/your_membership/sa_events.rb', line 14 def self.all_getIDs( = {}) # rubocop:disable Style/MethodName response = post('/', :body => build_XML_request('Sa.Events.All.GetIDs', nil, )) response_valid? response if response['YourMembership_Response']['Sa.Events.All.GetIDs'] response['YourMembership_Response']['Sa.Events.All.GetIDs']['EventID'] else return[] end end |
.event_registration_get(event_id, options = {}) ⇒ Hash
Returns Event Registration details for the provided Event and Event Registration ID. If the Event Registration contains a related Custom Form, the form data will be included in the <DataSet> element as it is stored in our database.
36 37 38 39 40 41 42 43 |
# File 'lib/your_membership/sa_events.rb', line 36 def self.event_registration_get(event_id, = {}) [:EventID] = event_id response = post('/', :body => build_XML_request('Sa.Events.Event.Registration.Get', nil, )) response_valid? response response['YourMembership_Response']['Sa.Events.Event.Registration.Get'] end |
.event_registrations_getIDs(event_id) ⇒ Array
Returns a list of Registration IDs for the specified Event ID.
51 52 53 54 55 56 57 58 59 60 61 62 63 |
# File 'lib/your_membership/sa_events.rb', line 51 def self.event_registrations_getIDs(event_id) # rubocop:disable Style/MethodName = {} [:EventID] = event_id response = post('/', :body => build_XML_request('Sa.Events.Event.Registrations.GetIDs', nil, )) response_valid? response if response['YourMembership_Response']['Sa.Events.Event.Registrations.GetIDs'] response['YourMembership_Response']['Sa.Events.Event.Registrations.GetIDs']['RegistrationID'] else return [] end end |