Module: Flickr::Client::Authentication
- Included in:
- Flickr::Client
- Defined in:
- lib/flickr/client/authentication.rb
Constant Summary collapse
- AUTHENTICATION_KEYS =
[:consumer_key, :consumer_secret, :token, :token_secret]
Instance Method Summary collapse
Instance Method Details
#authentication_options(options = {}) ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'lib/flickr/client/authentication.rb', line 6 def ( = {}) { :consumer_key => consumer_key, :consumer_secret => consumer_secret, :token => token, :token_secret => token_secret }.merge(.select{|k,v| AUTHENTICATION_KEYS.include?(k.to_sym)}) end |