Class: Chargify::Renewal::Preview

Inherits:
Base
  • Object
show all
Defined in:
lib/chargify_api_ares/resources/renewal_preview.rb

Instance Method Summary collapse

Methods inherited from Base

element_name, #to_xml

Instance Method Details

#createObject



6
7
8
9
# File 'lib/chargify_api_ares/resources/renewal_preview.rb', line 6

def create
  response = post(:preview, {}, attributes.send("to_#{self.class.format.extension}", :dasherize => false))
  load_attributes_from_response(response)
end