twingly / twingly-search-api-ruby

:gem: Twingly Blog Search API in Ruby
https://developer.twingly.com/
MIT License
4 stars 0 forks source link

Always append library user-agent to user-modifiable part #55

Open walro opened 8 years ago

walro commented 8 years ago

it could look something like this:

client = Twingly::Search::Client.new do |client|
  client.user_agent = "MyCompany"
end

puts  client.user_agent
# => MyCompany/Twingly Search Ruby Client 5.0.1