I have an initializer twitter.rb
:
require 'twitter'
client = Twitter::REST::Client.new(
{
:consumer_key => "",
:consumer_secret => "",
:access_token => "",
:access_token_secret=> "",
}
)
Then I want to be able to access this 'client' in other files say, a model called tag.rb
, could I do it just as:
puts client