Module: ChargeBee

Defined in:
lib/chargebee.rb,
lib/chargebee/rest.rb,
lib/chargebee/util.rb,
lib/chargebee/errors.rb,
lib/chargebee/result.rb,
lib/chargebee/request.rb,
lib/chargebee/models/plan.rb,
lib/chargebee/models/card.rb,
lib/chargebee/list_result.rb,
lib/chargebee/environment.rb,
lib/chargebee/models/event.rb,
lib/chargebee/models/addon.rb,
lib/chargebee/models/model.rb,
lib/chargebee/models/order.rb,
lib/chargebee/models/coupon.rb,
lib/chargebee/models/address.rb,
lib/chargebee/models/comment.rb,
lib/chargebee/models/invoice.rb,
lib/chargebee/models/customer.rb,
lib/chargebee/models/download.rb,
lib/chargebee/models/estimate.rb,
lib/chargebee/models/transaction.rb,
lib/chargebee/models/hosted_page.rb,
lib/chargebee/models/credit_note.rb,
lib/chargebee/models/coupon_code.rb,
lib/chargebee/models/subscription.rb,
lib/chargebee/models/portal_session.rb,
lib/chargebee/models/invoice_estimate.rb,
lib/chargebee/models/credit_note_estimate.rb,
lib/chargebee/models/subscription_estimate.rb,
lib/chargebee/models/third_party_payment_method.rb

Defined Under Namespace

Modules: Rest, Util Classes: APIError, Addon, Address, Card, Comment, Coupon, CouponCode, CreditNote, CreditNoteEstimate, Customer, Download, Environment, Error, Estimate, Event, HostedPage, IOError, InvalidRequestError, Invoice, InvoiceEstimate, ListResult, Model, OperationFailedError, Order, PaymentError, Plan, PortalSession, Request, Result, Subscription, SubscriptionEstimate, ThirdPartyPaymentMethod, Transaction

Constant Summary collapse

VERSION =
'2.1.0'
@@default_env =
nil
@@verify_ca_certs =
true
@@ca_cert_path =
File.join(File.dirname(__FILE__), '/ssl/ca-certs.crt')

Class Method Summary collapse

Class Method Details

.ca_cert_pathObject


58
59
60
# File 'lib/chargebee.rb', line 58

def self.ca_cert_path
  @@ca_cert_path
end

.configure(options) ⇒ Object


42
43
44
# File 'lib/chargebee.rb', line 42

def self.configure(options)
  @@default_env = Environment.new(options)
end

.default_envObject


46
47
48
# File 'lib/chargebee.rb', line 46

def self.default_env
  @@default_env
end

.verify_ca_certs=(verify) ⇒ Object


50
51
52
# File 'lib/chargebee.rb', line 50

def self.verify_ca_certs=(verify)
  @@verify_ca_certs = verify
end

.verify_ca_certs?Boolean

Returns:

  • (Boolean)

54
55
56
# File 'lib/chargebee.rb', line 54

def self.verify_ca_certs?
  @@verify_ca_certs
end