Class: Chargify::Base
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- Chargify::Base
show all
- Defined in:
- lib/chargify_api_ares/resources/base.rb
Direct Known Subclasses
Charge, Component, Coupon, Customer, Customer::Subscription, Event, Migration, Migration::Preview, PaymentProfile, Product, ProductFamily, ProductFamily::Component, ProductFamily::Coupon, ProductFamily::Product, Site, Statement, Subscription, Subscription::Component, Subscription::Event, Subscription::Statement, Subscription::Transaction, Transaction, Usage, Webhook
Class Method Summary
collapse
Instance Method Summary
collapse
Class Method Details
.element_name ⇒ Object
5
6
7
|
# File 'lib/chargify_api_ares/resources/base.rb', line 5
def self.element_name
name.split(/::/).last.underscore
end
|
Instance Method Details
#to_xml(options = {}) ⇒ Object
9
10
11
12
|
# File 'lib/chargify_api_ares/resources/base.rb', line 9
def to_xml(options = {})
options.merge!(:dasherize => false)
super
end
|