Class: CertificateFactory::API
- Inherits:
-
Object
- Object
- CertificateFactory::API
- Includes:
- HTTParty
- Defined in:
- lib/certificate-factory/api.rb
Instance Method Summary collapse
- #ckan_url ⇒ Object
-
#initialize(url) ⇒ API
constructor
A new instance of API.
Constructor Details
#initialize(url) ⇒ API
Returns a new instance of API.
8 9 10 11 |
# File 'lib/certificate-factory/api.rb', line 8 def initialize(url) @url = url @response = self.class.get(@url) end |
Instance Method Details
#ckan_url ⇒ Object
13 14 15 |
# File 'lib/certificate-factory/api.rb', line 13 def ckan_url @response['ckan_url'] end |