Module: Cubscout
- Defined in:
- lib/cubscout.rb,
lib/cubscout/list.rb,
lib/cubscout/user.rb,
lib/cubscout/config.rb,
lib/cubscout/object.rb,
lib/cubscout/scopes.rb,
lib/cubscout/request.rb,
lib/cubscout/version.rb,
lib/cubscout/resource.rb,
lib/cubscout/response.rb,
lib/cubscout/thread_item.rb,
lib/cubscout/conversation.rb
Defined Under Namespace
Modules: Scopes Classes: AuthenticationError, Config, Conversation, Error, InternalError, InvalidFormatError, JsonParseError, List, MalformedRequestError, Object, ParameterMissing, PermissionDeniedError, RateLimitExceeded, Request, ResourceNotFoundError, Response, ThreadItem, User
Constant Summary collapse
- VERSION =
"0.2.0"
Class Method Summary collapse
Class Method Details
.connection ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/cubscout/resource.rb', line 7 def connection @connection ||= Faraday.new(url: Cubscout::Config.api_prefix) do |faraday| faraday.use Cubscout::Request faraday.use Cubscout::Response faraday.adapter Faraday.default_adapter end end |