Class: Chargify::Base

Inherits:
ActiveResource::Base show all
Defined in:
lib/chargify_api_ares.rb

Direct Known Subclasses

Component, Customer, PaymentProfile, Product, ProductFamily, Site, Statement, Subscription, Subscription::Component, Subscription::Statement, Subscription::Transaction, Transaction, Usage

Class Method Summary (collapse)

Instance Method Summary (collapse)

Methods inherited from ActiveResource::Base

#save

Class Method Details

+ (Object) element_name



72
73
74
# File 'lib/chargify_api_ares.rb', line 72

def self.element_name
  name.split(/::/).last.underscore
end

Instance Method Details

- (Object) to_xml(options = {})



76
77
78
79
# File 'lib/chargify_api_ares.rb', line 76

def to_xml(options = {})
  options.merge!(:dasherize => false)
  super
end