Skip to content

Account object creates an un-necessary request #3

@marcrohloff

Description

@marcrohloff

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

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions