Sha256: 16451b727fb739c92e3422a6461eda5bdb091d7ab6d1286e8d52e7a58529651e
Contents?: true
Size: 882 Bytes
Versions: 2
Compression:
Stored size: 882 Bytes
Contents
require_relative 'resource' module Contentful module Management # Resource class for Webhook. # @see _ https://www.contentful.com/developers/documentation/content-management-api/http/#resources-webhooks class Webhook include Contentful::Management::Resource include Contentful::Management::Resource::SystemProperties include Contentful::Management::Resource::Refresher property :url, :string property :httpBasicUsername, :string # @private def self.endpoint 'webhook_definitions' end # @private def self.create_attributes(_client, attributes) attributes.select { |key, _value| [:httpBasicUsername, :httpBasicPassword, :url].include? key } end protected def query_attributes(attributes) self.class.create_attributes(nil, attributes) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
contentful-management-1.0.1 | lib/contentful/management/webhook.rb |
contentful-management-1.0.0 | lib/contentful/management/webhook.rb |