Class: Stripe2QB::Converters::Base
- Inherits:
-
Object
- Object
- Stripe2QB::Converters::Base
show all
- Defined in:
- lib/stripe2qb/converters/base.rb
Instance Attribute Summary collapse
Instance Method Summary
collapse
Constructor Details
#initialize(configuration) ⇒ Base
Returns a new instance of Base.
7
8
9
10
|
# File 'lib/stripe2qb/converters/base.rb', line 7
def initialize(configuration)
@quickbooks_api = configuration.quickbooks_api
@stripe_api = configuration.stripe_api
end
|
Instance Attribute Details
#quickbooks_api ⇒ Object
Returns the value of attribute quickbooks_api.
4
5
6
|
# File 'lib/stripe2qb/converters/base.rb', line 4
def quickbooks_api
@quickbooks_api
end
|
#stripe_api ⇒ Object
Returns the value of attribute stripe_api.
5
6
7
|
# File 'lib/stripe2qb/converters/base.rb', line 5
def stripe_api
@stripe_api
end
|
Instance Method Details
#create! ⇒ Object
20
21
22
|
# File 'lib/stripe2qb/converters/base.rb', line 20
def create!
raise 'not implemented'
end
|
#delete! ⇒ Object
28
29
30
|
# File 'lib/stripe2qb/converters/base.rb', line 28
def delete!
raise 'not implemented'
end
|
#exists? ⇒ Boolean
16
17
18
|
# File 'lib/stripe2qb/converters/base.rb', line 16
def exists?
!find.nil?
end
|
#find ⇒ Object
12
13
14
|
# File 'lib/stripe2qb/converters/base.rb', line 12
def find
raise 'not implemented'
end
|
#find_or_create ⇒ Object
24
25
26
|
# File 'lib/stripe2qb/converters/base.rb', line 24
def find_or_create
find || create!
end
|