Sha256: a3a86a9b389ca6f5bf21d2f1d9d61bf460ff7fe29ed39722d7c2d962844a927a

Contents?: true

Size: 506 Bytes

Versions: 5

Compression:

Stored size: 506 Bytes

Contents

module Trumpet
  class Base
    include Delegator
    
    delegate_with_credentials :users,         User
    delegate_with_credentials :channels,      Channel
    delegate_with_credentials :messages,      Message
    delegate_with_credentials :receivers,     Receiver
    delegate_with_credentials :listeners,     Listener
    delegate_with_credentials :transmitters,  Transmitter
            
    def initialize(credentials={})
      @credentials = credentials unless credentials.empty?
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
trumpet-trumpet-0.1.0 lib/trumpet/base.rb
trumpet-trumpet-0.1.1 lib/trumpet/base.rb
trumpet-trumpet-0.1.2 lib/trumpet/base.rb
trumpet-trumpet-0.1.3 lib/trumpet/base.rb
trumpet-trumpet-0.1.4 lib/trumpet/base.rb