class Itunes::Receipt::V2

Constants

PROPERTY_LIST

Public Class Methods

new(data: nil) click to toggle source
# File lib/itunes/receipt/v2.rb, line 22
def initialize data: nil
   @data = data
end

Public Instance Methods

expired?() click to toggle source
# File lib/itunes/receipt/v2.rb, line 16
def expired?
   self.expires_date < Time.now
end
to_h() click to toggle source
# File lib/itunes/receipt/v2.rb, line 12
def to_h
   YAML.load(data.to_yaml)
end