-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
In the code example:
account = Weeblycloud::Account.new
user = account.create_user("test@email.com")
site = user.create_site("domain.com", "site_title" => "My Website")
puts site.login_link()
4 http requests are made (one for each line), even though only 3 are necessary. (There is no need to fetch the account object). I just submitted a PR which allows data to be passed into the account so at least you can do:
account = Weeblycloud::Account.new({})
but this is not ideal.
The same is true of other objects. For example (assuming a already know the user and site id) I shouldn't have to fetch the site object to retrieve the login_link
Metadata
Metadata
Assignees
Labels
No labels