Sha256: bf776baadcdef0547c47aedfa84185ff92f3931827640ddaa87d30142ca0fd92

Contents?: true

Size: 280 Bytes

Versions: 2

Compression:

Stored size: 280 Bytes

Contents

module Organizai
  class Consumer
  
    attr_accessor :key, :secret, :kind
    
    def kind=(value)
      value = value.to_sym
      raise "Organizaí environment :#{value} does not exists." unless Organizai::HOST.keys.include?(value)
      @kind = value
    end
  
  end  
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
organizai-0.1.1 lib/organizai/consumer.rb
organizai-0.1.0 lib/organizai/consumer.rb