lib/troo/api/headers.rb in troo-0.0.10 vs lib/troo/api/headers.rb in troo-0.0.11
- old
+ new
@@ -1,17 +1,24 @@
module Troo
module API
class Headers
class << self
+ # @param [String]
+ # @param [Hash]
+ # @return [Hash]
def build!(uri, headers = {})
new(uri, headers).build!
end
end
+ # @param [String]
+ # @param [Hash]
+ # @return [Troo::API::Headers]
def initialize(uri, headers = {})
@uri, @headers = uri, headers
end
+ # @return [Hash]
def build!
defaults.merge!(@headers)
end
private