-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved implementation of token and url accessors
I flattened oauth_urls in BUILDAGS so the urls become first class attributes instead of members of a HASH ref with custom accessors. I inflate urls to URI objects on read access. I intentionally do not coerce them to URIs and just provide read access because that would result in subtle and perhaps surprising changes. E.g., my $uri = $self->authorization_url; $uri->query_form(oauth_token => $self->request_token); return $uri; Would result in a change to $self->authorization_url. If coerced into URI, I would want the reader to return a clone. This seems easier.
- Loading branch information
Showing
1 changed file
with
33 additions
and
29 deletions.
There are no files selected for viewing
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