Class: Mocodo::WebCuration::Contents

Inherits:
Base
  • Object
show all
Defined in:
lib/mocodo/web_curation.rb

Constant Summary collapse

EndPoint =
"/webCuration/v3/contents"

Constants inherited from Base

Base::BaseURL

Instance Attribute Summary

Attributes inherited from Base

#api_key, #response

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Mocodo::Base

Instance Method Details

#get(options = {}) ⇒ Object



12
13
14
# File 'lib/mocodo/web_curation.rb', line 12

def get(options={})
  JSON.parse(open(build_url(EndPoint, options)).read, symbolize_names: true)
end