Created
June 22, 2009 10:53
-
-
Save voxxit/133922 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> @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