Class: CandyCheck::AppStore::Config

Inherits:
Utils::Config show all
Defined in:
lib/candy_check/app_store/config.rb

Overview

Configure the verifier

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes) ⇒ Config

Initializes a new configuration from a hash

Examples:

Config.new(
  environment: :production # or :sandbox
)

Parameters:

  • attributes (Hash)


14
15
16
# File 'lib/candy_check/app_store/config.rb', line 14

def initialize(attributes)
  super
end

Instance Attribute Details

#environmentSymbol (readonly)

Returns the used environment.

Returns:

  • (Symbol)

    the used environment



6
7
8
# File 'lib/candy_check/app_store/config.rb', line 6

def environment
  @environment
end

Instance Method Details

#production?Boolean

Returns if it is production environment.

Returns:

  • (Boolean)

    if it is production environment



19
20
21
# File 'lib/candy_check/app_store/config.rb', line 19

def production?
  environment == :production
end