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 20 21 |
# File 'lib/candy_check/cli/commands/play_store.rb', line 16 def initialize(package, product_id, token, ) @package = package @product_id = product_id @token = token super() end |
Instance Method Details
#run ⇒ Object
Print the result of the verification to the terminal
24 25 26 27 28 29 30 |
# File 'lib/candy_check/cli/commands/play_store.rb', line 24 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 |