Class: Chargify::Migration::Preview

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

Instance Method Summary collapse

Methods inherited from Base

element_name, #to_xml

Instance Method Details

#createObject



18
19
20
21
# File 'lib/chargify_api_ares/resources/migration.rb', line 18

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