Skip to content

Commit

Permalink
Add deprecation warnings to oauth_token and oauth_token_secret accessors
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Jan 11, 2014
1 parent 062c20b commit ac24671
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions lib/twitter/client.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
require 'addressable/uri'
require 'simple_oauth'
require 'twitter/utils'
require 'twitter/version'

module Twitter
class Client
include Twitter::Utils
attr_accessor :access_token, :access_token_secret, :consumer_key, :consumer_secret
alias_method :oauth_token, :access_token
alias_method :oauth_token=, :access_token=
alias_method :oauth_token_secret, :access_token_secret
alias_method :oauth_token_secret=, :access_token_secret=
deprecate_alias :oauth_token, :access_token
deprecate_alias :oauth_token=, :access_token=
deprecate_alias :oauth_token_secret, :access_token_secret
deprecate_alias :oauth_token_secret=, :access_token_secret=

# Initializes a new Client object
#
Expand Down

0 comments on commit ac24671

Please sign in to comment.