Class: Faturando::Base

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

Direct Known Subclasses

Customer, Feature, FeatureValue, Plan, Project, Subscription

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from ActiveResource::Base

#save

Class Method Details

.element_nameObject



75
76
77
# File 'lib/faturando_api.rb', line 75

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

Instance Method Details

#to_xml(options = {}) ⇒ Object



79
80
81
82
# File 'lib/faturando_api.rb', line 79

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