Skip to content

Commit

Permalink
Update Fixnum -> Integer in documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
jnbt committed Feb 24, 2023
1 parent 6de39e2 commit 4a67609
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion lib/candy_check/app_store/receipt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def item_id
end

# The quantity of the product
# @return [Fixnum]
# @return [Integer]
def quantity
read_integer('quantity')
end
Expand Down
6 changes: 3 additions & 3 deletions lib/candy_check/app_store/verification_failure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@ 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
attr_reader :message

# 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
Expand All @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,15 @@ 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

# 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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/candy_check/play_store/verification_failure.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def initialize(error)
end

# The code of the failure
# @return [Fixnum]
# @return [Integer]
def code
Integer(error.status_code)
rescue
Expand Down

0 comments on commit 4a67609

Please sign in to comment.