Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> @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">
Add Comment
Please, Sign In to add comment