Class: Exchequer::Biller
- Inherits:
-
Object
- Object
- Exchequer::Biller
- Defined in:
- lib/exchequer/biller.rb
Instance Method Summary collapse
- #charge ⇒ Object
-
#initialize(card, options = {}) ⇒ Biller
constructor
A new instance of Biller.
- #subscription_id ⇒ Object
Constructor Details
#initialize(card, options = {}) ⇒ Biller
Returns a new instance of Biller.
2 3 4 5 |
# File 'lib/exchequer/biller.rb', line 2 def initialize(card, = {}) @card = card @options = end |
Instance Method Details
#charge ⇒ Object
7 8 9 10 11 12 |
# File 'lib/exchequer/biller.rb', line 7 def charge map_errors_from(customer) and return false if customer.id.nil? map_errors_from(subscription) and return false if !subscription.save true end |
#subscription_id ⇒ Object
14 15 16 |
# File 'lib/exchequer/biller.rb', line 14 def subscription_id subscription.id end |