Sha256: 8246dc6a6b1e662e3aedf1c16d15b6483cb51445af2b1e15252a50c534acd47b

Contents?: true

Size: 445 Bytes

Versions: 1

Compression:

Stored size: 445 Bytes

Contents

# encoding: utf-8

module Riksteatern
  class Config
    attr_accessor :base_url, :username, :password,
                  :json_parser, :http_client, :debug

    def initialize
      @base_url    = 'https://riksteatern.se:8181/api'
      @username    = nil
      @password    = nil
      @json_parser = ->(d) { JSON.parse(d) }
      @http_client = Riksteatern::HTTP
      @debug       = false

      yield self if block_given?
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
riksteatern-0.0.1 lib/riksteatern/config.rb