lib/geo_certs/order.rb in geocerts-0.0.20 vs lib/geo_certs/order.rb in geocerts-0.0.21
- old
+ new
@@ -76,10 +76,14 @@
def self.find_by_id(id)
find(id)
rescue GeoCerts::AllowableExceptionWithResponse
nil
end
-
+
+ ##
+ # Returns a collection of Email addresses which may approve the given
+ # domain.
+ #
def self.approvers(domain)
response = call_api { GeoCerts.api.domain_approvers(:domain => domain) }
collection = Collection.new
response[:emails][:email].each { |email| collection << Email.new(email) }
collection