Class: ItunesReceiptDecoder::Decode::TransactionReceipt
- Defined in:
- lib/itunes_receipt_decoder/decode/transaction_receipt.rb
Overview
ItunesReceiptDecoder::Decode::TransactionReceipt
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
-
#decode ⇒ Object
Decodes the receipt.
-
#environment ⇒ Object
Gets the environment from the payload.
-
#style ⇒ Object
Just returns :transaction.
Methods inherited from Base
#initialize, #production?, #receipt, #sandbox?
Constructor Details
This class inherits a constructor from ItunesReceiptDecoder::Decode::Base
Instance Method Details
#decode ⇒ Object
Decodes the receipt
12 13 14 15 |
# File 'lib/itunes_receipt_decoder/decode/transaction_receipt.rb', line 12 def decode @receipt ||= purchase_info self end |
#environment ⇒ Object
Gets the environment from the payload
25 26 27 |
# File 'lib/itunes_receipt_decoder/decode/transaction_receipt.rb', line 25 def environment payload['environment'] end |
#style ⇒ Object
Just returns :transaction
19 20 21 |
# File 'lib/itunes_receipt_decoder/decode/transaction_receipt.rb', line 19 def style :transaction end |