diff --git a/lib/candy_check/app_store/receipt.rb b/lib/candy_check/app_store/receipt.rb index 423723d..375843b 100644 --- a/lib/candy_check/app_store/receipt.rb +++ b/lib/candy_check/app_store/receipt.rb @@ -59,7 +59,7 @@ def item_id end # The quantity of the product - # @return [Fixnum] + # @return [Integer] def quantity read_integer('quantity') end diff --git a/lib/candy_check/app_store/verification_failure.rb b/lib/candy_check/app_store/verification_failure.rb index 8bbb96a..cb11bf0 100644 --- a/lib/candy_check/app_store/verification_failure.rb +++ b/lib/candy_check/app_store/verification_failure.rb @@ -2,7 +2,7 @@ module CandyCheck module AppStore # Represents a failing call against the verification server class VerificationFailure - # @return [Fixnum] the code of the failure + # @return [Integer] the code of the failure attr_reader :code # @return [String] the message of the failure @@ -10,7 +10,7 @@ class VerificationFailure # Initializes a new instance which bases on a JSON result # from Apple servers - # @param code [Fixnum] + # @param code [Integer] # @param message [String] def initialize(code, message) @code = code @@ -20,7 +20,7 @@ def initialize(code, message) class << self # Gets a known failure or build an unknown failure # without description - # @param code [Fixnum] + # @param code [Integer] # @return [VerificationFailure] def fetch(code) known.fetch(code) do diff --git a/lib/candy_check/play_store/product_purchases/product_purchase.rb b/lib/candy_check/play_store/product_purchases/product_purchase.rb index 3270ad8..2c5321a 100644 --- a/lib/candy_check/play_store/product_purchases/product_purchase.rb +++ b/lib/candy_check/play_store/product_purchases/product_purchase.rb @@ -26,7 +26,7 @@ def initialize(product_purchase) # The purchase state of the order. Possible values are: # * 0: Purchased # * 1: Cancelled - # @return [Fixnum] + # @return [Integer] def purchase_state @product_purchase.purchase_state end @@ -34,7 +34,7 @@ def purchase_state # The consumption state of the inapp product. Possible values are: # * 0: Yet to be consumed # * 1: Consumed - # @return [Fixnum] + # @return [Integer] def consumption_state @product_purchase.consumption_state end @@ -60,7 +60,7 @@ def order_id # The time the product was purchased, in milliseconds since the # epoch (Jan 1, 1970) - # @return [Fixnum] + # @return [Integer] def purchase_time_millis @product_purchase.purchase_time_millis end diff --git a/lib/candy_check/play_store/verification_failure.rb b/lib/candy_check/play_store/verification_failure.rb index 7a0035b..181b85d 100644 --- a/lib/candy_check/play_store/verification_failure.rb +++ b/lib/candy_check/play_store/verification_failure.rb @@ -15,7 +15,7 @@ def initialize(error) end # The code of the failure - # @return [Fixnum] + # @return [Integer] def code Integer(error.status_code) rescue