Skip to content

Instantly share code, notes, and snippets.

@voxxit
Created June 22, 2009 10:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voxxit/133922 to your computer and use it in GitHub Desktop.
Save voxxit/133922 to your computer and use it in GitHub Desktop.
>> @hosting_account = @client.hosting_accounts.new({"primary_domain_name"=>"", "hosting_account_features_attributes"=>{"0"=>{"feature_type_id"=>"1", "units"=>"10"}, "1"=>{"feature_type_id"=>"2", "units"=>"5"}, "2"=>{"feature_type_id"=>"3", "units"=>"5"}, "3"=>{"feature_type_id"=>"4", "units"=>"10"}}})
=> #<HostingAccount id: nil, client_id: 1, cpanel_server_id: nil, username: nil, password: nil, payment_period: "annual", automatically_renew: false, primary_domain_name: "", expires_at: nil, created_at: nil, updated_at: nil>
>> @hosting_account.save
=> false
>> @hosting_account
=> #<HostingAccount id: 5, client_id: 1, cpanel_server_id: nil, username: nil, password: nil, payment_period: "annual", automatically_renew: false, primary_domain_name: "", expires_at: "2010-06-22", created_at: "2009-06-22 10:52:31", updated_at: "2009-06-22 10:52:31">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment