Sha256: 525710aa0d3ef76c6887cb1827a5c6cf4eb587215c0398837ac7ab54896892b9

Contents?: true

Size: 740 Bytes

Versions: 10

Compression:

Stored size: 740 Bytes

Contents

#
# billing_change_notification.rb
# ConstantContact
#
# Copyright (c) 2013 Constant Contact. All rights reserved.

module ConstantContact
  module Webhooks
    module Models
      class BillingChangeNotification
        attr_accessor :event_type, :url

        # Factory method to create a BillingChangeNotification model object from a hash
        # @param [Hash] props - hash of properties to create object from
        # @return [BillingChangeNotification]
        def self.create(props)
          obj = BillingChangeNotification.new
          props.each do |key, value|
            key = key.to_s
            obj.send("#{key}=", value) if obj.respond_to? key
          end if props
          obj
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
constantcontact-4.0.0 lib/constantcontact/webhooks/models/billing_change_notification.rb
constantcontact-3.0.0 lib/constantcontact/webhooks/models/billing_change_notification.rb
constantcontact-2.2.1 lib/constantcontact/webhooks/models/billing_change_notification.rb
constantcontact-ruby-2.2.1 lib/constantcontact/webhooks/models/billing_change_notification.rb
constantcontact-ruby-2.2.0 lib/constantcontact/webhooks/models/billing_change_notification.rb
constantcontact-2.2.0 lib/constantcontact/webhooks/models/billing_change_notification.rb
constantcontact-2.1.0 lib/constantcontact/webhooks/models/billing_change_notification.rb
constantcontact-2.0.1 lib/constantcontact/webhooks/models/billing_change_notification.rb
constantcontact-2.0.0 lib/constantcontact/webhooks/models/billing_change_notification.rb
constantcontact-1.3.2 lib/constantcontact/webhooks/models/billing_change_notification.rb