travis-ci
263 of 263 new or added lines in 19 files covered. (100.0%)
1652 of 1680 relevant lines covered (98.33%)
16.68 hits per line
|
module CandyCheck |
7 all except jruby-head ✔ |
|
module AppStore |
7 all except jruby-head ✔ |
3 |
# Describes a successful response from the AppStore verification server
|
|
|
class SubscriptionReceipt |
7 all except jruby-head ✔ |
|
attr_reader :receipt, :receipt_collection |
7 all except jruby-head ✔ |
6 |
|
|
7 |
# Initializes a new instance
|
|
|
def initialize(receipt, receipt_collection) |
7 all except jruby-head ✔ |
|
@receipt = receipt
|
7 all except jruby-head ✔ |
|
@receipt_collection = receipt_collection
|
7 all except jruby-head ✔ |
11 |
end
|
|
12 |
|
|
|
def transactions |
7 all except jruby-head ✔ |
|
@receipt_collection.receipts
|
× |
15 |
end
|
|
16 |
|
|
|
def valid? |
7 all except jruby-head ✔ |
|
@receipt.is_a?(CandyCheck::AppStore::Receipt) && |
× |
|
@receipt_collection.is_a?(CandyCheck::AppStore::ReceiptCollection) |
× |
20 |
end
|
|
21 |
end
|
|
22 |
end
|
|
23 |
end
|