Class: BirdGrinder::Tweeter::AbstractAuthorization

Inherits:
Object
  • Object
show all
Defined in:
lib/bird_grinder/tweeter/abstract_authorization.rb

Direct Known Subclasses

BasicAuthorization, OAuthAuthorization

Instance Method Summary collapse

Instance Method Details

#add_header_to(http) ⇒ Object



7
8
9
10
# File 'lib/bird_grinder/tweeter/abstract_authorization.rb', line 7

def add_header_to(http)
  headers = (http.options[:head] ||= {})
  headers['Authorization'] = self.header_for(http)
end

#header_for(http) ⇒ Object

Raises:

  • (NotImplementedError)


12
13
14
# File 'lib/bird_grinder/tweeter/abstract_authorization.rb', line 12

def header_for(http)
  raise NotImplementedError
end