Class: CertificateFactory::API

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/certificate-factory/api.rb

Instance Method Summary collapse

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_urlObject



13
14
15
# File 'lib/certificate-factory/api.rb', line 13

def ckan_url
  @response['ckan_url']
end