module Fastbill::Automatic
Constants
- API_BASE
- API_VERSION
- ROOT_PATH
- VERSION
Public Class Methods
api_key()
click to toggle source
# File lib/fastbill-automatic.rb, line 68 def self.api_key @@api_key end
api_key=(api_key)
click to toggle source
# File lib/fastbill-automatic.rb, line 72 def self.api_key=(api_key) @@api_key = api_key end
email()
click to toggle source
# File lib/fastbill-automatic.rb, line 76 def self.email @@email end
email=(email)
click to toggle source
# File lib/fastbill-automatic.rb, line 80 def self.email=(email) @@email = email end
request(service, data)
click to toggle source
# File lib/fastbill-automatic.rb, line 84 def self.request(service, data) info = Request::Info.new(service, data) if request_method == :https Request::Base.new(info).perform else Fastbill::Automatic::Base.request_infos << info end end
request_method()
click to toggle source
# File lib/fastbill-automatic.rb, line 56 def self.request_method @@request_method end
request_method=(method)
click to toggle source
# File lib/fastbill-automatic.rb, line 60 def self.request_method=(method) if [:https, :test].include? method @@request_method = method else raise NonSupportedRequestMethod end end