Class: Jackie::Base
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- Jackie::Base
- Defined in:
- lib/jackie/base.rb
Class Method Summary collapse
Class Method Details
.api_key=(api_key) ⇒ Object
17 18 19 |
# File 'lib/jackie/base.rb', line 17 def api_key=(api_key) headers.merge!({'Authorization' => "Basic #{Base64.strict_encode64(api_key)}"}) end |
.headers ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/jackie/base.rb', line 7 def headers if defined?(@headers) @headers elsif superclass != Object && superclass.headers superclass.headers else @headers ||= {} end end |