Class: FbResource::Config

Inherits:
OpenStruct
  • Object
show all
Defined in:
lib/config.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.buildObject



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_headersObject



5
6
7
# File 'lib/config.rb', line 5

def http_headers
  { Authorization: self.token }
end