Class: CandyCheck::CLI::Commands::PlayStore
- Defined in:
- lib/candy_check/cli/commands/play_store.rb
Overview
Command to verify an PlayStore purchase
Instance Method Summary collapse
-
#initialize(package, product_id, token, options) ⇒ PlayStore
constructor
Prepare a verification run from the terminal.
-
#run ⇒ Object
Print the result of the verification to the terminal.
Methods inherited from Base
Constructor Details
#initialize(package, product_id, token, options) ⇒ PlayStore
Prepare a verification run from the terminal
16 17 18 19 |
# File 'lib/candy_check/cli/commands/play_store.rb', line 16 def initialize(package, product_id, token, ) @package, @product_id, @token = package, product_id, token super() end |
Instance Method Details
#run ⇒ Object
Print the result of the verification to the terminal
22 23 24 25 26 27 28 |
# File 'lib/candy_check/cli/commands/play_store.rb', line 22 def run verifier = CandyCheck::PlayStore::Verifier.new(config) verifier.boot! result = verifier.verify(@package, @product_id, @token) out.print "#{result.class}:" out.pretty result end |