class CocRb::Settings

Public Class Methods

get() click to toggle source
# File lib/cocRb/api.rb, line 23
   def self.get
     @conn = Faraday.new(
     url: CocRb.configuration.url ,
     headers: {
        'Content-Type' => 'application/json',
        'Authorization' => "Bearer #{CocRb.configuration.token}"
     }
   )
rescue => e
   raise "Oops Unexpected error Caught!"
   puts e
end