Sha256: 68a9ee43e613563afedb3c2aa46decfe414cd7571354efc3cc38ec0d97652bbb

Contents?: true

Size: 189 Bytes

Versions: 6

Compression:

Stored size: 189 Bytes

Contents

require 'base64'
module Zenvia
  class Config
    attr_accessor :account, :code, :from
    private :account, :code

    def auth; Base64.encode64("#{account}:#{code}").strip; end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
zenvia-rb-0.1.0 lib/zenvia/config.rb
zenvia-rb-0.0.11 lib/zenvia/config.rb
zenvia-rb-0.0.10 lib/zenvia/config.rb
zenvia-rb-0.0.9 lib/zenvia/config.rb
zenvia-rb-0.0.8 lib/zenvia/config.rb
zenvia-rb-0.0.7 lib/zenvia/config.rb