Class: ConstantContact::Webhooks::Models::BillingChangeNotification
- Inherits:
-
Object
- Object
- ConstantContact::Webhooks::Models::BillingChangeNotification
- Defined in:
- lib/constantcontact/webhooks/models/billing_change_notification.rb
Instance Attribute Summary collapse
-
#event_type ⇒ Object
Returns the value of attribute event_type.
-
#url ⇒ Object
Returns the value of attribute url.
Class Method Summary collapse
-
.create(props) ⇒ BillingChangeNotification
Factory method to create a BillingChangeNotification model object from a hash.
Instance Attribute Details
#event_type ⇒ Object
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 |
#url ⇒ Object
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
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 |