Class: NRL::Base
- Inherits:
-
Object
- Object
- NRL::Base
- Defined in:
- lib/nrl/base.rb
Class Method Summary collapse
Class Method Details
.connection ⇒ Object
3 4 5 6 7 8 |
# File 'lib/nrl/base.rb', line 3 def self.connection @conn ||= Faraday.new(BASE_URL) do |connection| connection.adapter Faraday.default_adapter connection.response :json, :content_type => /\bjson$/ end end |