Sha256: 39bc8a37556e2b7b46a1ceeca8ce6fa35c6b02657c7c66fb29e2ea8d75b11a2a
Contents?: true
Size: 1.42 KB
Versions: 6
Compression:
Stored size: 1.42 KB
Contents
module Voog class API # Voog Element Definitions API methods. # # @see http://www.voog.com/developers/api/resources/element_definitions module ElementDefinitions # List element_definitions # # @see http://www.voog.com/developers/api/resources/element_definitions#get_element_definitions def element_definitions(params = {}) paginate 'element_definitions', {query: params} end # Get a single element_definition # # @see http://www.voog.com/developers/api/resources/element_definitions#get_element_definition def element_definition(id, params = {}) get "element_definitions/#{id}", {query: params} end # Create a element_definition # # @see http://www.voog.com/developers/api/resources/element_definitions#create_element_definition def create_element_definition(data) post 'element_definitions', data end # Update a element_definition # # @see http://www.voog.com/developers/api/resources/element_definitions#update_element_definition def update_element_definition(id, data) put "element_definitions/#{id}", data end # Delete a element_definition # # @see http://www.voog.com/developers/api/resources/element_definitions#remove_element_definition def delete_element_definition(id) delete "element_definitions/#{id}" end end end end
Version data entries
6 entries across 6 versions & 1 rubygems