Class: Xolphin::Api::Responses::Certificates
- Defined in:
- lib/xolphin/api/responses/certificates.rb
Instance Method Summary collapse
- #certificates ⇒ Object
-
#initialize(data) ⇒ Certificates
constructor
A new instance of Certificates.
Methods inherited from Base
#_embedded, #error?, #errors, #limit, #message, #page, #pages, #total
Constructor Details
#initialize(data) ⇒ Certificates
Returns a new instance of Certificates.
5 6 7 |
# File 'lib/xolphin/api/responses/certificates.rb', line 5 def initialize(data) super(data) end |
Instance Method Details
#certificates ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/xolphin/api/responses/certificates.rb', line 9 def certificates @certificates ||= begin certificates = [] if && ["certificates"] ["certificates"].each do |certificate| certificates << Certificate.new(certificate) end end certificates end end |