Sha256: c2241a45092855c551da03ea0eb8843d9e6be33698a0dcd953cb7a40b319c737

Contents?: true

Size: 768 Bytes

Versions: 1

Compression:

Stored size: 768 Bytes

Contents

module Voog
  class API
    module ElementDefinitions

      # List element_definitions
      def element_definitions(params = {})
        paginate 'element_definitions', {query: params}
      end

      # Get a single element_definition
      def element_definition(id, params = {})
        get "element_definitions/#{id}", {query: params}
      end

      # Create a element_definition
      def create_element_definition(data)
        post 'element_definitions', data
      end

      # Update a element_definition
      def update_element_definition(id, data)
        put "element_definitions/#{id}", data
      end

      # Delete a element_definition
      def delete_element_definition(id)
        delete "element_definitions/#{id}"
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
voog_api-0.0.10 lib/voog_api/api/element_definitions.rb