Module: GoodReceipt
- Defined in:
- lib/good_receipt/base.rb,
lib/good_receipt/receipt.rb,
lib/good_receipt/version.rb
Defined Under Namespace
Classes: Base, Configuration, Receipt, ReceiptDataError, ReceiptError
Constant Summary collapse
- VERSION =
'1.0.0'.freeze
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Instance Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
27 28 29 |
# File 'lib/good_receipt/base.rb', line 27 def configuration @configuration end |
Class Method Details
.configure {|configuration| ... } ⇒ Object
30 31 32 33 |
# File 'lib/good_receipt/base.rb', line 30 def self.configure self.configuration ||= Configuration.new yield(configuration) end |
Instance Method Details
#initialize ⇒ Object
35 36 37 |
# File 'lib/good_receipt/base.rb', line 35 def initialize @configuration = self.class.configuration end |