Class: ConstantContact::Webhooks::Models::BillingChangeNotification

Inherits:
Object
  • Object
show all
Defined in:
lib/constantcontact/webhooks/models/billing_change_notification.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#event_typeObject

Returns the value of attribute event_type



11
12
13
# File 'lib/constantcontact/webhooks/models/billing_change_notification.rb', line 11

def event_type
  @event_type
end

#urlObject

Returns the value of attribute url



11
12
13
# File 'lib/constantcontact/webhooks/models/billing_change_notification.rb', line 11

def url
  @url
end

Class Method Details

.create(props) ⇒ BillingChangeNotification

Factory method to create a BillingChangeNotification model object from a hash

Parameters:

  • props (Hash)
    • hash of properties to create object from

Returns:



16
17
18
19
20
21
22
23
# File 'lib/constantcontact/webhooks/models/billing_change_notification.rb', line 16

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