Sha256: d0b838d64c4a888565669d5c93c6b76c5d634b2bfbc2e59c6625d676bde037b3

Contents?: true

Size: 635 Bytes

Versions: 1

Compression:

Stored size: 635 Bytes

Contents

# encoding: utf-8

require 'riksteatern/api'
require 'riksteatern/config'
require 'riksteatern/errors'
require 'riksteatern/event'
require 'riksteatern/http'
require 'riksteatern/producer'
require 'riksteatern/production'
require 'riksteatern/venue'
require 'riksteatern/version'

module Riksteatern
  class << self
    def configure(&block)
      yield(config)
    end

    def config
      @config ||= Config.new
    end

    def api
      @api ||= Api.new(config)
    end

    def account(username, password)
      configure do |c|
        c.username = username
        c.password = password
      end

      self
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
riksteatern-0.0.1 lib/riksteatern.rb