Class: YourMembership::Sa::Member
- Defined in:
- lib/your_membership/sa_member.rb
Overview
YourMembership System Administrator Member Namespace
Class Method Summary collapse
-
.certifications_get(member_id, options = {}) ⇒ Array
Returns a list of Certifications for the specified user.
-
.certifications_journal_get(member_id, options = {}) ⇒ Array
Returns a list of Certification Journal Entries for the specified user that may be optionally filtered by date, expiration, and paging.
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
.certifications_get(member_id, options = {}) ⇒ Array
Returns a list of Certifications for the specified user.
13 14 15 16 17 18 19 20 |
# File 'lib/your_membership/sa_member.rb', line 13 def self.certifications_get(member_id, = {}) [:ID] = member_id response = post('/', :body => build_XML_request('Sa.Member.Certifications.Get', nil, )) response_valid? response response_to_array_of_hashes response['YourMembership_Response']['Sa.Member.Certifications.Get'], ['Certification'] end |
.certifications_journal_get(member_id, options = {}) ⇒ Array
Returns a list of Certification Journal Entries for the specified user that may be optionally filtered by date, expiration, and paging.
39 40 41 42 43 44 45 46 |
# File 'lib/your_membership/sa_member.rb', line 39 def self.certifications_journal_get(member_id, = {}) [:ID] = member_id response = post('/', :body => build_XML_request('Sa.Member.Certifications.Journal.Get', nil, )) response_valid? response response_to_array_of_hashes response['YourMembership_Response']['Sa.Member.Certifications.Journal.Get'], ['Entry'] end |