Sha256: c642fdd6590b7b2a4a3a43149dcaa5b6155ad3b85cf5c8047d8af89b2fb41230

Contents?: true

Size: 426 Bytes

Versions: 2

Compression:

Stored size: 426 Bytes

Contents

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

    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.from=(from); @from = from; end

    def self.from; @from; 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.6 lib/zenvia/config.rb
zenvia-rb-0.0.5 lib/zenvia/config.rb