class Trello::Schema::Serializer::Webhooks
Public Class Methods
deserialize(webhooks, default)
click to toggle source
# File lib/trello/schema/serializer/webhooks.rb, line 12 def deserialize(webhooks, default) return default unless webhooks webhooks.map do |webhook| next webhook if webhook.is_a?(Trello::Webhook) Trello::Webhook.new(webhook) end end
serialize(webhooks)
click to toggle source
# File lib/trello/schema/serializer/webhooks.rb, line 6 def serialize(webhooks) webhooks ||= [] webhooks.map(&:id) end