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) ⇒ Object

Initializes a new configuration from a hash

Examples:

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

Parameters:

  • attributes (Hash)


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

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



17
18
19
# File 'lib/candy_check/app_store/config.rb', line 17

def production?
  environment == :production
end