Class: FbResource::Config
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- FbResource::Config
- Defined in:
- lib/config.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.build ⇒ Object
9 10 11 12 13 14 |
# File 'lib/config.rb', line 9 def self.build # Set defaults self .new .tap {|obj| obj.url = 'http://localhost:3000'} end |
Instance Method Details
#http_headers ⇒ Object
5 6 7 |
# File 'lib/config.rb', line 5 def http_headers { Authorization: self.token } end |