class SkullIsland::SimpleAPIClient

The Simple API Client class

Public Class Methods

new(opts = {}) click to toggle source
# File lib/skull_island/simple_api_client.rb, line 6
def initialize(opts = {})
  # validations
  validate_opts(opts)

  # Set up the client's state
  @server     = opts[:server] || 'http://localhost:8001'
  @username   = opts[:username]
  @password   = opts[:password]
  @cache      = LRUCache.new(size: 1000) # LRU cache of up to 1000 items
  @configured = true
end