lib/zenvia/config.rb in zenvia-rb-0.0.6 vs lib/zenvia/config.rb in zenvia-rb-0.0.7
- old
+ new
@@ -1,21 +1,9 @@
require 'base64'
module Zenvia
class Config
- attr_accessor :account, :code, :name
+ attr_accessor :account, :code, :from
+ private :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.from=(from); @from = from; end
-
- def self.from; @from; end
-
- private
- def self.auth; Base64.encode64("#{@account}:#{@code}").strip; end
+ def auth; Base64.encode64("#{account}:#{code}").strip; end
end
end