Class: YourMembership::Sa::Certifications

Inherits:
Base
  • Object
show all
Defined in:
lib/your_membership/sa_certifications.rb

Overview

YourMembership System Administrator Certifications Namespace

Class Method Summary collapse

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_get(is_active = true) ⇒ Array

Return a list of all certification records for the community.

Parameters:

  • is_active (Boolean) (defaults to: true)

    Include active certification records in the returned result. Default: True

Returns:

  • (Array)

    Returns an Array of Hashes representing Certification Records

See Also:



11
12
13
14
15
16
17
18
19
# File 'lib/your_membership/sa_certifications.rb', line 11

def self.all_get(is_active = true)
  options = {}
  options[:IsActive] = is_active

  response = post('/', :body => build_XML_request('Sa.Certifications.All.Get', nil, options))

  response_valid? response
  response_to_array_of_hashes response['YourMembership_Response']['Sa.Certifications.All.Get'], ['Certification']
end