Sha256: 716d27e25506a3d1eade59f831828016108c348c64a8a2a37986f12b2367c1c2
Contents?: true
Size: 419 Bytes
Versions: 2
Compression:
Stored size: 419 Bytes
Contents
require 'base64' class Zenvia module Config attr_accessor :account, :code def self.account; @account; end def self.account=(account); @account = account; end def self.code=(code); @code = code; end def self.code; @code; end def self.name=(name); @name = name; end def self.name; @name; end private def self.auth; Base64.encode64("#{@account}:#{@code}").strip; end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
zenvia-rb-0.0.4 | lib/zenvia/config.rb |
zenvia-rb-0.0.3 | lib/zenvia/config.rb |